Skip to content

fix(Spinner): use aria-label when defined, falling back to srText - #4685

Merged
joshblack merged 6 commits into
mainfrom
fix/update-spinner-srText-fallback
Jun 20, 2024
Merged

fix(Spinner): use aria-label when defined, falling back to srText#4685
joshblack merged 6 commits into
mainfrom
fix/update-spinner-srText-fallback

Conversation

@joshblack

Copy link
Copy Markdown
Member

Resolve an issue that is showing up in: https://github.com/github/github/pull/329788 where Spinner will always use srText instead of the provided aria-label.

Changelog

New

Changed

  • Update Spinner to render an sr-only div only if aria-label is not defined. In this case, use srText as the value for the sr-only div.

Removed

Rollout strategy

  • Patch release

@joshblack
joshblack requested a review from a team as a code ownerJune 19, 2024 18:07
@changeset-bot

changeset-botBot commented Jun 19, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e01be70

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@joshblackjoshblack mentioned this pull request Jun 19, 2024
4 tasks
@joshblackjoshblack added the skip changeset This change does not need a changelog label Jun 19, 2024
@joshblack
joshblack requested a review from jonrohanJune 19, 2024 18:08
@github-actions

github-actionsBot commented Jun 19, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
packages/react/dist/browser.esm.js90.8 KB (-0.08% 🔽)
packages/react/dist/browser.umd.js91.16 KB (+0.1% 🔺)

@github-actions
github-actionsBottemporarily deployed to storybook-preview-4685 June 19, 2024 18:11 Inactive

@jonrohanjonrohan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any tests?

@joshblack

Copy link
Copy Markdown
MemberAuthor

@jonrohan good call, added!

@joshblack
joshblack enabled auto-merge June 19, 2024 19:22
@github-actions
github-actionsBottemporarily deployed to storybook-preview-4685 June 19, 2024 19:26 Inactive
@github-actions
github-actionsBottemporarily deployed to storybook-preview-4685 June 20, 2024 15:47 Inactive
@joshblack
joshblack added this pull request to the merge queueJun 20, 2024
Merged via the queue into main with commit 0cf08f3Jun 20, 2024
@joshblack
joshblack deleted the fix/update-spinner-srText-fallback branch June 20, 2024 16:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changesetThis change does not need a changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@joshblack@jonrohan