feat(ActionBar): customizable overflow menu label
Closes: #7437
Changelog
New
- Added
overflowLabelprop toActionBarPropswith default"More items". - Storybook updated to expose
overflowLabelas a control.
Changed
- Overflow menu button
aria-labelnow usesoverflowLabelinstead of hardcoded"More {ariaLabel} items".
Removed
- None
Rollout strategy
- [x] Patch release
Testing & Reviewing
- Verified manually in Storybook:
- Default shows
"More items". - Custom values (e.g.
"More actions") update correctly.
- Default shows
- Could not locate an existing test file for
ActionBarundersrc/__tests__. Fix validated through Storybook preview.
Merge checklist
- [ ] Added/updated tests (none found for ActionBar, validated manually)
- [x] Added/updated documentation (Storybook)
- [x] Added/updated previews (Storybook)
- [x] Changes are SSR compatible
- [x] Tested in Chrome
- [ ] Tested in Firefox
- [ ] Tested in Safari
- [ ] Tested in Edge
⚠️ No Changeset found
Latest commit: c09ad9a0e9b717013eff6f9cd2321596206661ba
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
Also, can we add a changeset of minor (as we're adding a new prop here). You can refer to this guide on adding a changeset: https://github.com/primer/react/blob/main/contributor-docs/CONTRIBUTING.md#adding-changeset-to-your-pull-request or run npx changeset.
In addition, you might need to run npm run format, as I see there's a CI failure for formatting. Let me know if you have any questions!
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days.
It looks like @harshbhonsle is no longer active on this PR. Instead of letting this change go stale, I wonder if the reviewer @TylerJDev might be willing to take it over and get it to the finish line?