storybook/examples/ember-cli/stories/addon-a11y.stories.js
2020-06-16 21:14:10 +08:00

18 lines
558 B
JavaScript

import { hbs } from 'ember-cli-htmlbars';
export default {
title: 'Addon/a11y',
parameters: {
options: { selectedPanel: '@storybook/a11y/panel' },
},
};
export const Default = () => hbs`<button></button>`;
export const Label = () => hbs`<button>Testing the a11y addon</button>`;
export const Disabled = () => hbs`<button disabled>Testing the a11y addon</button>`;
export const InvalidContrast = () =>
hbs`<button style="color: black; background-color: brown;">Testing the a11y addon</button>`;
InvalidContrast.storyName = 'Invalid contrast';