-
Notifications
You must be signed in to change notification settings - Fork 432
ColorPicker accessibility - fixed button label not read by screen reader #3095
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
ColorPicker accessibility - fixed button label not read by screen reader #3095
Conversation
Thanks for the contribution! It looks like @kmmkwong is an internal user so signing the CLA is not required. However, we need to confirm this. |
@garygong @kevinparkerson @interactivellama please kindly review. |
label={<Swatch color={this.state.currentColor} labels={labels} />} | ||
label={ | ||
<div> | ||
<span className="slds-assistive-text"> |
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.
This mirrors the way assistive text is being added by Button component. But we need to add it manually here since the label is a node instead of a string.
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.
@kevinparkerson thanks for approving. Much appreciated! Would you also know how to remove the cla:missing tag? I signed the confirmation form already but it's not being picked up.
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.
Great find! on this Button label @kmmkwong
@kevinparkerson Mind reapproving this? I needed to close and re-open the PR to trigger the cla:missing removal. |
@kmmkwong This is released. |
Fixes #
Additional description
CONTRIBUTOR checklist (do not remove)
Please complete for every pull request
npm run lint:fix
has been run and linting passes.components/component-docs.json
CI tests pass (npm test
).REVIEWER checklist (do not remove)
components/component-docs.json
tests.Required only if there are markup / UX changes
last-slds-markup-review
inpackage.json
and push.last-accessibility-review
, topackage.json
and push.npm run local-update
within locally cloned site repo to confirm the site will function correctly at the next release.