import React, { Fragment } from 'react';
import { storiesOf } from '@storybook/react';
import { Typography, Form } from '@storybook/components';
import BaseButton from '../components/BaseButton';
import DelayedRender from '../components/DelayedRender';
import Button from '../components/addon-a11y/Button';
const text = 'Testing the a11y addon';
const image = 'http://placehold.it/350x150';
// eslint-disable-next-line no-script-url
const href = 'javascript:void 0';
storiesOf('Addons|A11y/BaseButton', module)
.addParameters({ options: { selectedPanel: 'storybook/a11y/panel' } })
.add('Default', () => )
.add('Label', () => )
.add('Disabled', () => )
.add('Invalid contrast', () => (
// FIXME: has no effect on score
))
.add('delayed render', () => (
));
storiesOf('Addons|A11y/Button', module)
.addParameters({ options: { selectedPanel: 'storybook/a11y/panel' } })
.add('Default', () => )
.add('Content', () => )
.add('Label', () => )
.add('Disabled', () => )
.add('Invalid contrast', () => );
storiesOf('Addons|A11y/Form', module)
.addParameters({ options: { selectedPanel: 'storybook/a11y/panel' } })
.add('Without Label', () => (
))
.add('With label', () => (
))
.add('With placeholder', () => (
));
storiesOf('Addons|A11y/Image', module)
.addParameters({ options: { selectedPanel: 'storybook/a11y/panel' } })
.add('Without alt', () => )
.add('With alt', () => )
.add('Presentation', () => );
storiesOf('Addons|A11y/Typography', module)
.addParameters({ options: { selectedPanel: 'storybook/a11y/panel' } })
.add('Correct', () => (
{text}
{text}
{`${text}...`}
))
.add('Empty Heading', () => )
.add('Empty Paragraph', () => )
.add('Empty Link', () => )
.add('Link without href', () => {`${text}...`});