Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixing a11y issues
Browse files Browse the repository at this point in the history
Kezhik Kyzyl-ool committed Apr 22, 2024
1 parent a243d19 commit 2e178ce
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
@@ -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
17 changes: 17 additions & 0 deletions src/components/Divider/__stories__/Divider.stories.tsx
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 2e178ce

Please sign in to comment.