Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octicon remediation: aria-label #4811

Merged
merged 10 commits into from
Aug 20, 2024
Next Next commit
correct aria-label
  • Loading branch information
siddharthkp committed Aug 2, 2024
commit 5a7678d8fd31ff7385bbb5565adcafdf1268dc50
4 changes: 2 additions & 2 deletions packages/react/src/Octicon/Octicon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export default {
component: Octicon,
} as Meta<typeof Octicon>

export const Default = () => <Octicon icon={HeartFillIcon} size={32} />
export const Default = () => <Octicon icon={HeartFillIcon} aria-label="Like" size={32} />

export const Playground: StoryFn<typeof Octicon> = args => <Octicon icon={HeartFillIcon} {...args} />

Playground.args = {
ariaLabel: 'Heart',
'aria-label': 'Heart',
size: 32,
}

Expand Down