Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
feat(Pagination): added knob Aria label - FRONT-488 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joosthe authored Feb 11, 2020
1 parent ae9432c commit 4e93f0e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/ec/packages/ec-component-pagination/pagination.story.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import merge from 'deepmerge';
import { storiesOf } from '@storybook/html';
import { withKnobs } from '@storybook/addon-knobs';
import { withKnobs, text } from '@storybook/addon-knobs';
import { withNotes } from '@ecl-twig/storybook-addon-notes';
import withCode from '@ecl-twig/storybook-addon-code';

Expand All @@ -20,6 +21,15 @@ storiesOf('Components/Navigation/Pagination', module)
.addDecorator(withKnobs)
.addDecorator(withNotes)
.addDecorator(withCode)
.add('default', () => pagination(data), {
notes: { markdown: notes, json: data },
});
.add(
'default',
() =>
pagination(
merge(data, {
label: text('Aria-Label', data.label),
})
),
{
notes: { markdown: notes, json: data },
}
);

0 comments on commit 4e93f0e

Please sign in to comment.