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

Button: only add fallback aria-labelledby if aria-label isn't present #4459

Closed
wants to merge 2 commits into from

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Apr 3, 2024

Changelog

In #3582, we introduced an aria-labelledby for all instances of Button. This however isn't a good idea when aria-label is already present on the instance.

aria-labelledby takes precedence over aria-label, so we only want to add a fallback aria-labelledby when aria-label isn't present

Skipping changeset because this is a bug fix for an unreleased PR

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

Tested with gh/gh by making the changes locally

Merge checklist

@siddharthkp siddharthkp requested a review from a team as a code owner April 3, 2024 15:12
Copy link

changeset-bot bot commented Apr 3, 2024

⚠️ No Changeset found

Latest commit: e6f8aef

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

@siddharthkp siddharthkp added the skip changeset This change does not need a changelog label Apr 3, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-4459 April 3, 2024 15:16 Inactive
Copy link
Contributor

github-actions bot commented Apr 3, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.96 KB (-0.02% 🔽)
packages/react/dist/browser.umd.js 89.25 KB (-0.01% 🔽)

Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Collaborator

@pksjce pksjce left a comment

Choose a reason for hiding this comment

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

wow TIL about the precedence

@siddharthkp
Copy link
Member Author

siddharthkp commented Apr 4, 2024

Sorry, this wasn't enough. There are more CI failures, Need to revert #3582 :(

Reverted in #4464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants