Skip to content
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-label to Java Lab preview show/hide button #49516

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

molly-moen
Copy link
Contributor

@molly-moen molly-moen commented Dec 14, 2022

Add aria-label to the show/hide preview toggle in Java Lab, as it does not have any text. The aria label is "Show preview" if the preview is hidden and "Hide preview" if the preview is visible. The button in question is the chevron at the top left of the preview.

Screen Shot 2022-12-14 at 12 03 20 PM

Links

Testing story

Tested locally with VoiceOver.

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@molly-moen molly-moen requested a review from a team as a code owner December 14, 2022 20:06
@molly-moen molly-moen changed the title Add aria-label to Java Lab preview collapse button Add aria-label to Java Lab preview show/hide button Dec 14, 2022
@molly-moen molly-moen requested a review from a team December 14, 2022 20:09
@molly-moen molly-moen merged commit a20157a into staging Dec 15, 2022
@molly-moen molly-moen deleted the molly/label-collapse-preview branch December 15, 2022 21:27
@bencodeorg
Copy link
Contributor

For future reference, Erin pointed me towards the aria-expanded attribute in a similar PR here:

#49494

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

Successfully merging this pull request may close these issues.

None yet

3 participants