Change Proposal: Read-only styling for Switch, Checkbox, and Radio
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- Active
- Stack technique
- react, typescript
- Domaine
- accessibility, frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 9
- Forks
- 3
- Merge moyen
- 6 j 7 h
- PR mergées (30 j)
- 20
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DiamondLightSource/sci-react-ui
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
DiamondLightSource/sci-react-ui#325 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
accepted
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
DiamondLightSource/sci-react-ui#283 ·
Les mainteneurs répondent en général sous 2 jours
-
needs-triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
DiamondLightSource/sci-react-ui#332 ·
Les mainteneurs répondent en général sous 2 jours
-
Bug Report: SSR font flicker caused by design-system styles loading after the initial renderOuverteneeds-triage
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
DiamondLightSource/sci-react-ui#324 ·
Les mainteneurs répondent en général sous 2 jours
-
needs-triage
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 45/100
DiamondLightSource/sci-react-ui#280 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de DiamondLightSource/sci-react-ui
Issues similaires
-
bug via-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pingdotgg/t3code#14452 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
solana-foundation/program-examples#747 · 1 commentaire ·
Les mainteneurs répondent en général sous 9 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
remotion-dev/remotion#11847 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
openwatersio/slackwater#355 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
melgarafael/DeskcommCRM#1998 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour