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

LabelGroup: Update "toggle" accessible name to include visual text #4910

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

TylerJDev
Copy link
Contributor

Closes https://github.com/github/primer/issues/3426

Changelog

Changed

  • Updates the accessible name of the "toggle" button in LabelGroup to include the visual label

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@TylerJDev TylerJDev self-assigned this Sep 3, 2024
@TylerJDev TylerJDev requested a review from a team as a code owner September 3, 2024 19:34
Copy link

changeset-bot bot commented Sep 3, 2024

🦋 Changeset detected

Latest commit: bdc650c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Sep 3, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 96.42 KB (+0.06% 🔺)
packages/react/dist/browser.umd.js 96.66 KB (-0.06% 🔽)

@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/340287

}) =>
isOverflowShown ? (
<Button ref={collapseButtonRef} onClick={collapseInlineExpandedChildren} size="small" variant="invisible">
Show less
</Button>
) : hiddenItemIds.length ? (
<Button ref={expandButtonRef} variant="invisible" size="small" onClick={showAllTokensInline}>
<VisuallyHidden>Show all {totalLength}</VisuallyHidden>
<VisuallyHidden>Show +{hiddenItemIds.length} more</VisuallyHidden>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random question, what does including + here do? Is this changing how it's announced?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't really change much. For all the screen readers I tested with (NVDA, VoiceOver, JAWS) they all announced "Show plus 11 more". It would be preferable for it to say "11 plus", but then we'd need to move the + in the visual text to be after the number (e.g. 11+).

@TylerJDev TylerJDev added this pull request to the merge queue Sep 13, 2024
Merged via the queue into main with commit c2e4d5e Sep 13, 2024
37 checks passed
@TylerJDev TylerJDev deleted the tylerjdev/label-group-accName branch September 13, 2024 16:10
@primer primer bot mentioned this pull request Sep 13, 2024
TylerJDev added a commit that referenced this pull request Sep 23, 2024
…4910)

* Update `LabelGroup` truncate button accName

* Add changeset
@primer primer bot mentioned this pull request Oct 18, 2024
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.

2 participants