mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
# Conflicts: # addons/actions/package.json # addons/backgrounds/package.json # addons/jest/src/register.js # addons/knobs/src/components/types/Array.js # addons/notes/package.json # addons/notes/src/index.js # addons/storyshots/storyshots-core/package.json # lib/channel-websocket/package.json # lib/components/package.json # lib/components/src/layout/desktop.js # lib/ui/package.json # lib/ui/src/modules/api/actions/api.js # lib/ui/src/modules/shortcuts/actions/shortcuts.js # lib/ui/src/modules/ui/components/stories_panel/index.js # lib/ui/src/modules/ui/components/stories_panel/text_filter.js # lib/ui/src/modules/ui/components/stories_panel/text_filter.test.js # lib/ui/src/modules/ui/containers/header.js # lib/ui/src/modules/ui/containers/layout.js # lib/ui/src/modules/ui/libs/filters.js # yarn.lock
16 lines
629 B
JavaScript
16 lines
629 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import { storiesOf } from '@storybook/ember';
|
|
import { checkA11y } from '@storybook/addon-a11y';
|
|
|
|
storiesOf('Addon|a11y', module)
|
|
.addDecorator(checkA11y)
|
|
.addParameters({ options: { selectedAddonPanel: '@storybook/addon-a11y/panel' } })
|
|
.add('Default', () => hbs`<button></button>`)
|
|
.add('Label', () => hbs`<button>Testing the a11y addon</button>`)
|
|
.add('Disabled', () => hbs`<button disabled>Testing the a11y addon</button>`)
|
|
.add(
|
|
'Invalid contrast',
|
|
() =>
|
|
hbs`<button style="color: black; background-color: brown;">Testing the a11y addon</button>`
|
|
);
|