react icon indicating copy to clipboard operation
react copied to clipboard

feat(ActionBar): customizable overflow menu label

Open harshbhonsle opened this issue 9 months ago • 4 comments

Closes: #7437

Changelog

New

  • Added overflowLabel prop to ActionBarProps with default "More items".
  • Storybook updated to expose overflowLabel as a control.

Changed

  • Overflow menu button aria-label now uses overflowLabel instead 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.
  • Could not locate an existing test file for ActionBar under src/__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

harshbhonsle avatar Feb 10 '26 13:02 harshbhonsle

⚠️ 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

changeset-bot[bot] avatar Feb 10 '26 13:02 changeset-bot[bot]

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!

TylerJDev avatar Feb 13 '26 23:02 TylerJDev

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.

github-actions[bot] avatar Apr 15 '26 00:04 github-actions[bot]

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?

lesliecdubs avatar Jun 16 '26 20:06 lesliecdubs