Skip to content

Commit 1f17e84

Browse files
committed
fix(DesignSystem): add aria-label to icon-only buttons
1 parent 07e307a commit 1f17e84

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/design-system/src/lib/stories/button/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const WithIcon: Story = {
125125
}
126126

127127
export const IconOnly: Story = {
128-
render: () => <Button icon={<Search />} variant="secondary" />
128+
render: () => <Button icon={<Search />} variant="secondary" aria-label="Search" />
129129
}
130130

131131
export const UseCasePrimaryButtonAsCallToAction: Story = {

packages/design-system/src/lib/stories/form/Form.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const InputWithButton: Story = {
133133
<Form.Group controlId="basic-form-search">
134134
<Form.InputGroup>
135135
<Form.Group.Input type="text" placeholder="Search..." aria-label="Search" />
136-
<Button variant="secondary" icon={<Search />} />
136+
<Button variant="secondary" icon={<Search />} aria-label="Search submit" />
137137
</Form.InputGroup>
138138
</Form.Group>
139139
</Form>

0 commit comments

Comments
 (0)