Skip to content

Commit e77dc73

Browse files
committed
fix a11y
1 parent f62adda commit e77dc73

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

polaris-react/src/components/Button/Button.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,11 @@ export function Split() {
641641
active={active}
642642
preferredAlignment="right"
643643
activator={
644-
<Button onClick={() => setActive(true)} icon={ChevronDownMinor} />
644+
<Button
645+
onClick={() => setActive(true)}
646+
icon={ChevronDownMinor}
647+
accessibilityLabel="Other save actions"
648+
/>
645649
}
646650
autofocusTarget="first-node"
647651
onClose={() => setActive(false)}

polaris.shopify.com/pages/examples/button-split.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ function ButtonExample() {
1414
active={active}
1515
preferredAlignment="right"
1616
activator={
17-
<Button onClick={() => setActive(true)} icon={ChevronDownMinor} />
17+
<Button
18+
onClick={() => setActive(true)}
19+
icon={ChevronDownMinor}
20+
accessibilityLabel="Other save actions"
21+
/>
1822
}
1923
autofocusTarget="first-node"
2024
onClose={() => setActive(false)}

0 commit comments

Comments
 (0)