Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/actionbar-more-items-label.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Update the ActionBar overflow menu anchor label to `More items`
2 changes: 1 addition & 1 deletion e2e/components/drafts/ActionBar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.describe('ActionBar', () => {
state: 'hidden',
})
await expect(page.locator(toolbarButtonSelector).filter({visible: true})).toHaveCount(8)
const moreButtonSelector = page.getByLabel('More Comment box toolbar items')
const moreButtonSelector = page.getByLabel('More items')
await moreButtonSelector.click()
await expect(page.locator('ul[role="menu"] [role="menuitem"]')).toHaveCount(3)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const ActionBar: React.FC<React.PropsWithChildren<ActionBarProps>> = ({
<ActionMenu.Anchor>
<IconButton
variant="invisible"
aria-label={`More ${ariaLabel} items ${overflowItems?.length}`}
aria-label="More items"
icon={KebabHorizontalIcon}
className={styles.MoreButton}
data-more-button-inactive={overflowItems?.length ? undefined : true}
Expand Down
Loading