-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WNMGDS-326] Fix react button styling (#572)
* Add combined ds-c-button--transparent ds-c-button--inverse styles as equivalent to --transparent-inverse * Update Button.jsx, example and tests * Update Badge example to not use <code>
- Loading branch information
1 parent
5f7813b
commit 616e749
Showing
5 changed files
with
92 additions
and
75 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
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,19 @@ | ||
import React, { Fragment } from 'react'; | ||
import Button from './Button'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
ReactDOM.render( | ||
<div> | ||
<Button>Button</Button> | ||
|
||
<Button | ||
className="ds-u-margin-left--1" | ||
href="javascript:void(0);" | ||
variation="primary" | ||
> | ||
Anchor button | ||
<Fragment> | ||
<Button className="ds-u-margin-right--1">Button</Button> | ||
<Button className="ds-u-margin-right--1" variation="primary"> | ||
Button with `variation` prop | ||
</Button> | ||
<Button className="ds-u-margin-right--1" disabled> | ||
Button with `disabled` prop | ||
</Button> | ||
<Button className="ds-u-margin-right--1" href="javascript:void(0);"> | ||
Button with `href` prop | ||
</Button> | ||
</div>, | ||
</Fragment>, | ||
document.getElementById('js-example') | ||
); |
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
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