Change Proposal: Read-only styling for Switch, Checkbox, and Radio
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 9
- Fork
- 3
- Merge trung bình
- 6 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DiamondLightSource/sci-react-ui
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DiamondLightSource/sci-react-ui#325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DiamondLightSource/sci-react-ui#283 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
DiamondLightSource/sci-react-ui#334 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
DiamondLightSource/sci-react-ui#332 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug Report: SSR font flicker caused by design-system styles loading after the initial renderĐang mởneeds-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
DiamondLightSource/sci-react-ui#324 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của DiamondLightSource/sci-react-ui
Issue tương tự
-
area/frontend good first issue kind/cooldown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
voidzero-dev/oxc-angular-compiler#511 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
langchain-ai/deepagentsjs#898 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
anomalyco/models.dev#8509 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation P2 UI/UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày