Skip to content

Commit

Permalink
fix: fixing a11y issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Apr 22, 2024
1 parent a243d19 commit 2e178ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/__stories__/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const InsideText: Story = {
<Button {...args} /> dolor
<br />
sit{' '}
<Button {...args}>
<Button {...args} extraProps={{'aria-label': 'Icon button inside text'}}>
<IconComponent data={Globe} />
</Button>{' '}
amet
Expand Down
17 changes: 17 additions & 0 deletions src/components/Divider/__stories__/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ import {Divider} from '../Divider';
const meta: Meta<typeof Divider> = {
title: 'Components/Utils/Divider',
component: Divider,
parameters: {
a11y: {
element: '#storybook-root',
config: {
rules: [
{
id: 'aria-allowed-attr', // https://github.com/gravity-ui/uikit/issues/1336
enabled: false,
},
{
id: 'aria-required-parent', // https://github.com/gravity-ui/uikit/issues/1336
enabled: false,
},
],
},
},
},
};

export default meta;
Expand Down

0 comments on commit 2e178ce

Please sign in to comment.