Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-experimental-entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored May 18, 2023
2 parents 1b08e6c + 013d541 commit 8cfeff0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docs/content/ActionMenu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ const Example = () => {

return (
<ActionMenu>
<ActionMenu.Button aria-label="Select field type" leadingIcon={selectedType.icon}>
{selectedType.name}
</ActionMenu.Button>
<ActionMenu.Button leadingIcon={selectedType.icon}>{selectedType.name}</ActionMenu.Button>
<ActionMenu.Overlay width="medium">
<ActionList selectionVariant="single">
{fieldTypes.map((type, index) => (
Expand Down
2 changes: 1 addition & 1 deletion src/ActionMenu/ActionMenu.examples.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const MixedSelection = () => {

return (
<ActionMenu>
<ActionMenu.Button aria-label="Group by" leadingIcon={selectedOption ? selectedOption.icon : undefined}>
<ActionMenu.Button leadingIcon={selectedOption ? selectedOption.icon : undefined}>
{selectedOption ? `Group by ${selectedOption.text}` : 'Group items by'}
</ActionMenu.Button>
<ActionMenu.Overlay width="medium">
Expand Down
5 changes: 4 additions & 1 deletion src/__tests__/ActionMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ describe('ActionMenu', () => {
<MixedSelection />
</ThemeProvider>,
)
const button = component.getByLabelText('Group by')

const button = component.getByRole('button', {
name: 'Group by Stage',
})

const user = userEvent.setup()
await user.click(button)
Expand Down

0 comments on commit 8cfeff0

Please sign in to comment.