-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(tag): add link styles * chore(tag): add a story
- Loading branch information
Celeste Glavin
authored
May 16, 2019
1 parent
ff33608
commit 8c5cf4b
Showing
4 changed files
with
32 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,9 @@ title: Tag | |
variation="tag" | ||
> | ||
</component> | ||
|
||
<component | ||
component="tag" | ||
variation="tag-link" | ||
> | ||
</component> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="javascript:;" class="ray-tag">Enterprise</a> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Tag', module).add('default', () => ( | ||
<> | ||
<span className="ray-tag">Enterprise</span> | ||
</> | ||
)); | ||
storiesOf('Tag', module) | ||
.add('default', () => ( | ||
<> | ||
<span className="ray-tag">Enterprise</span> | ||
</> | ||
)) | ||
.add('as a link', () => ( | ||
<> | ||
<a href="javascript:;" className="ray-tag"> | ||
Enterprise | ||
</a> | ||
</> | ||
)); |