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

Revert "Add loading prop for Button and IconButton (#3582)" #4464

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Apr 4, 2024

Sorry @langermank! Found some more bugs in integration tests that I wasn't able to fix inline

Bugs spotted in CI failures:

  1. In Add loading prop for Button and IconButton #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 because aria-labelledby takes precedence over aria-label (we only want to add a fallback aria-labelledby when aria-label isn't present) (see CI error)
  2. Text in trailingVisual (counter, keyboard shortcuts hint, etc) was included in the label, this was removed in Add loading prop for Button and IconButton #3582 example: github/github/CommandButton (see CI error)

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; Reverts unreleased PR

Next steps:

  1. After this PR is merged, please revert this pull request to bring back your changes in a new PR.
  2. Mark as ready to review once you have tested with dotcom

Follow this guide to run integration tests for your pull request in dotcom: https://github.com/github/primer-engineering/blob/main/how-we-work/testing-primer-react-pr-at-dotcom.md

Copy link

changeset-bot bot commented Apr 4, 2024

⚠️ No Changeset found

Latest commit: 6d30160

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 requested review from langermank and removed request for pksjce and maximedegreve April 4, 2024 09:30
@siddharthkp siddharthkp added skip changeset This change does not need a changelog and removed skip changeset This change does not need a changelog labels Apr 4, 2024
@siddharthkp siddharthkp self-assigned this Apr 4, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 87.92 KB (-1.2% 🔽)
packages/react/dist/browser.umd.js 88.29 KB (-1.08% 🔽)

Copy link
Contributor

@maximedegreve maximedegreve left a comment

Choose a reason for hiding this comment

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

Approved since it's a revert

@siddharthkp siddharthkp removed the request for review from langermank April 4, 2024 11:17
@siddharthkp siddharthkp added this pull request to the merge queue Apr 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 4, 2024
@siddharthkp siddharthkp added this pull request to the merge queue Apr 4, 2024
Merged via the queue into main with commit c01901f Apr 4, 2024
29 of 30 checks passed
@siddharthkp siddharthkp deleted the revert-3582 branch April 4, 2024 11:36
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.

4 participants