-
Notifications
You must be signed in to change notification settings - Fork 324
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
add ARIA labels to input fields #2562
Conversation
Signed-off-by: Michael Robinson <merobi@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #2562 +/- ##
=========================================
Coverage 83.26% 83.26%
Complexity 1286 1286
=========================================
Files 243 243
Lines 5934 5934
Branches 279 279
=========================================
Hits 4941 4941
Misses 846 846
Partials 147 147 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -30,7 +30,7 @@ const SearchPlaceholder: React.FC<WithStyles<typeof styles>> = ({ classes }) => | |||
return ( | |||
<Box className={classes.root}> | |||
<Box display={'inline'}> | |||
<MqText disabled inline> | |||
<MqText disabled inline aria-label={i18next.t('search.search_aria')} aria-required='true'> | |||
{' '} |
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.
Why is there a space character here?
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.
Signed-off-by: Michael Robinson <merobi@gmail.com>
Signed-off-by: Michael Robinson <merobi@gmail.com>
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.
Looks Good @merobi-hub Thank you!
Problem
Input fields in the Web UI are missing ARIA labels, which the OSSF Silver Badge requires to meet a11y standards.
Solution
This adds ARIA properties to the Web UI's
input
andtext
components used for user input and configures i18next to support the text in them. All have been tested with a screen reader and found to work as expected.One-line summary: adds i18next-compliant ARIA labels to input fields
Checklist
CHANGELOG.md
(Depending on the change, this may not be necessary)..sql
database schema migration according to Flyway's naming convention (if relevant)