Skip to content

Conversation

mperrotti
Copy link
Contributor

@mperrotti mperrotti commented Sep 18, 2025

Unblocks broken tests in github-ui introduced during Markdown editor redesign implementation.

Changelog

New

Changed

In ActionBar, aria-label now gets added to the role="toolbar" element.

Removed

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

Merge checklist

@Copilot Copilot AI review requested due to automatic review settings September 18, 2025 18:22
@mperrotti mperrotti requested a review from a team as a code owner September 18, 2025 18:22
@mperrotti mperrotti requested a review from jonrohan September 18, 2025 18:22
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: 35c4c2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@primer/react Patch
@primer/styled-react Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables proper accessibility labeling for the ActionBar component by passing the aria-label prop to the toolbar element instead of only using it for overflow menu items.

  • Passes aria-label and aria-labelledby props to the toolbar element
  • Fixes variable name confusion between toolbar label and menu item labels
  • Updates Storybook example to demonstrate proper usage

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/react/src/ActionBar/ActionBar.tsx Adds aria-label support to toolbar element and fixes variable naming conflicts
packages/react/src/ActionBar/ActionBar.stories.tsx Adds aria-label example to Storybook playground
.changeset/flat-ears-wink.md Documents the change for release notes

Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Sep 18, 2025
@github-actions github-actions bot temporarily deployed to storybook-preview-6877 September 18, 2025 18:31 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants