Change Proposal: Read-only styling for Switch, Checkbox, and Radio
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- accessibility, frontend
Línea de trabajo
Start by reviewing issue #272 and PR #328 to understand the existing read-only treatment for text-like controls, then locate the Switch, Checkbox, and Radio implementations. Done means the three controls support the proposed read-only interface, remain focusable and announced appropriately, prevent changes, and have an agreed visual treatment with coverage for these behaviors.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What is being proposed?
A read-only variant for MuiSwitch, MuiCheckbox, and MuiRadio, distinct from disabled.
Why is this needed?
Follow-up from #272 / PR #328, which gave TextField/Select/Autocomplete a dedicated read-only look.
These three controls have no native readOnly support in MUI (unlike text-like inputs), and they currently have only disabled, which mutes the value and drops the control from the tab order even when the value itself still needs to be shown and announced, with no read-only treatment at all.
What will change?
- Behaviour: enforce read-only via controlled
checked+ no-oponChange, since nativereadonlyon checkbox/radio inputs doesn't block clicks - Accessibility:
aria-readonlyinstead ofaria-disabled, keeping the control focusable/announced - Visual: likely closer to full saturation than the muted
--ds-surface-readonlywash used for text inputs, since the value is meaningful and being displayed, not unavailable
Interface changes (if any)
<Switch readOnly checked={value} />
<Checkbox readOnly checked={value} />
<Radio readOnly checked={value} />
Breaking change?
- No
Next steps
A maintainer will review this issue.
If accepted, it will be marked as accepted and a PR may then be opened.
- Lenguaje dominante
- TypeScript
- Estrellas
- 9
- Forks
- 3
- Merge medio
- 6 d 7 h
- PR fusionados (30 d)
- 20
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DiamondLightSource/sci-react-ui
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DiamondLightSource/sci-react-ui#325 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
accepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DiamondLightSource/sci-react-ui#283 ·
Los mantenedores suelen responder en 2 días
-
needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
DiamondLightSource/sci-react-ui#332 ·
Los mantenedores suelen responder en 2 días
-
Bug Report: SSR font flicker caused by design-system styles loading after the initial renderAbiertoneeds-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
DiamondLightSource/sci-react-ui#324 ·
Los mantenedores suelen responder en 2 días
-
needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
DiamondLightSource/sci-react-ui#280 ·
Los mantenedores suelen responder en 2 días
Todos los issues de DiamondLightSource/sci-react-ui
Issues similares
-
bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pingdotgg/t3code#14452 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
solana-foundation/program-examples#747 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
remotion-dev/remotion#11847 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openwatersio/slackwater#355 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
melgarafael/DeskcommCRM#1998 · 3 comentarios ·
Los mantenedores suelen responder en 1 día