-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [M3-7574] - Fix missing labels for User Permission radio buttons #10908
Conversation
Coverage Report: ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good
value="null" | ||
/> | ||
} | ||
label="None" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than using the span.MuiFormControlLabel-label
selector on the TableRow, we could apply the bold style here.
Honestly not sure which is better. Sometimes I'm hesitant with using MUI classnames because they could change in future MUI releases and cause the UI to break
label="None" | |
slotProps={{ | |
typography: { | |
sx: (theme) => ({ fontFamily: theme.font.bold }), | |
}, | |
}} | |
label="None" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome thanks Erik! 🎉
don't forget the changeset!
…linode#10908) * fix: [M3-7574] - Fix missing label for user permission radio btns * Add changeset
Description 📝
This PR fixes the problem in which the "None", "Read-Only", and "Read-Write" radio buttons under the "Specific Permissions" of the User Permissions page do not have any label or ARIA label, making it difficult to interact with the page using screen readers.
Changes 🔄
List any change relevant to the reviewer.
<label />
element with MUI equivalent components.Target release date 🗓️
09/11/2024
Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
Verification steps
(How to verify changes)
As an Author I have considered 🤔
Check all that apply