Skip to content

Commit

Permalink
fix a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledurand committed Aug 23, 2023
1 parent f62adda commit e77dc73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion polaris-react/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,11 @@ export function Split() {
active={active}
preferredAlignment="right"
activator={
<Button onClick={() => setActive(true)} icon={ChevronDownMinor} />
<Button
onClick={() => setActive(true)}
icon={ChevronDownMinor}
accessibilityLabel="Other save actions"
/>
}
autofocusTarget="first-node"
onClose={() => setActive(false)}
Expand Down
6 changes: 5 additions & 1 deletion polaris.shopify.com/pages/examples/button-split.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ function ButtonExample() {
active={active}
preferredAlignment="right"
activator={
<Button onClick={() => setActive(true)} icon={ChevronDownMinor} />
<Button
onClick={() => setActive(true)}
icon={ChevronDownMinor}
accessibilityLabel="Other save actions"
/>
}
autofocusTarget="first-node"
onClose={() => setActive(false)}
Expand Down

0 comments on commit e77dc73

Please sign in to comment.