This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,706 additions
and
1,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
packages/components/psammead-copyright/src/index.stories.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withKnobs, text } from '@storybook/addon-knobs'; | ||
import VisuallyHiddenText from '@bbc/psammead-visually-hidden-text'; | ||
import notes from '../README.md'; | ||
import Copyright from './index'; | ||
|
||
storiesOf('Copyright', module) | ||
.add('default', () => <Copyright>Getty Images</Copyright>, { notes }) | ||
.addDecorator(withKnobs) | ||
.add( | ||
'default', | ||
() => <Copyright>{text('copyright', 'Getty Images')}</Copyright>, | ||
{ notes, knobs: { escapeHTML: false } }, | ||
) | ||
.add( | ||
'with visually hidden text', | ||
() => ( | ||
<Copyright> | ||
<VisuallyHiddenText>Image source, </VisuallyHiddenText> | ||
Getty Images | ||
<VisuallyHiddenText> | ||
{text('visually hidden text', 'Image source, ')} | ||
</VisuallyHiddenText> | ||
{text('copyright', 'Getty Images')} | ||
</Copyright> | ||
), | ||
{ notes }, | ||
{ notes, knobs: { escapeHTML: false } }, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.