Skip to content

ColorPicker accessibility - fixed button label not read by screen reader - #3095

Merged
interactivellama merged 3 commits into
salesforce:masterfrom
kmmkwong:marywong/fix-color-picker-accessibility
Feb 21, 2023
Merged

interactivellama merged 3 commits into
salesforce:masterfrom
kmmkwong:marywong/fix-color-picker-accessibility

Conversation

@kmmkwong

Copy link
Copy Markdown
Contributor

Fixes #

  • the accessibility issue by adding the missing assistive text to be read by screen reader for the toggle button in ColorPicker

Additional description

  • the assistive text is missing. We are using a node as label so we need to provide some assistive text for screen reader in the node also.

CONTRIBUTOR checklist (do not remove)

Please complete for every pull request

REVIEWER checklist (do not remove)

Required only if there are markup / UX changes
  • Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
  • Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
  • Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
  • While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

@salesforce-cla

Copy link
Copy Markdown

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.

@kmmkwong

Copy link
Copy Markdown
Contributor Author

@garygong @kevinparkerson @interactivellama please kindly review.

label={<Swatch color={this.state.currentColor} labels={labels} />}
label={
<div>
<span className="slds-assistive-text">

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor Author

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.

@interactivellama interactivellama Feb 21, 2023 •

Copy link
Copy Markdown
Contributor

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

@kmmkwong kmmkwong closed this Feb 16, 2023
@kmmkwong kmmkwong reopened this Feb 16, 2023
@kmmkwong

Copy link
Copy Markdown
Contributor Author

@kevinparkerson Mind reapproving this? I needed to close and re-open the PR to trigger the cla:missing removal.

@interactivellama
interactivellama self-requested a review February 21, 2023 16:34
@interactivellama
interactivellama merged commit 87f430a into salesforce:master Feb 21, 2023
@interactivellama

Copy link
Copy Markdown
Contributor

@kmmkwong This is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants