Skip to content

Commit

Permalink
Add aria-labels to button stories for improved accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Nov 11, 2024
1 parent a1b4d25 commit 424ce9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/shared/button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const Default: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "default",
},
Expand All @@ -48,6 +49,7 @@ export const Small: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "sm",
},
Expand All @@ -66,6 +68,7 @@ export const SmallDark: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "sm",
},
Expand All @@ -85,6 +88,7 @@ export const Medium: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "md",
},
Expand All @@ -103,6 +107,7 @@ export const MediumDark: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "md",
},
Expand All @@ -122,6 +127,7 @@ export const Large: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "lg",
},
Expand All @@ -140,6 +146,7 @@ export const LargeDark: Story = {
},
},
args: {
ariaLabel: "Prøv Lydbogen",
variant: "default",
size: "lg",
},
Expand All @@ -154,6 +161,7 @@ export const LargeDark: Story = {
export const IconStory: Story = {
name: "Icon",
args: {
ariaLabel: "Tilgå hjælpesiden",
variant: "icon",
},
render: args => (
Expand All @@ -166,6 +174,7 @@ export const IconStory: Story = {
export const IconStoryDark: Story = {
name: "Icon dark",
args: {
ariaLabel: "Tilgå hjælpesiden",
variant: "icon",
},
decorators: [darkModeDecorator],
Expand Down

0 comments on commit 424ce9d

Please sign in to comment.