Skip to content

Commit

Permalink
Rename stroked to outlined
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed May 29, 2018
1 parent 2248f26 commit 3a1bc59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Prop Name | Type | Description
className | String | Classes to be applied to the root element.
raised | Boolean | Enables raised variant.
unelevated | Boolean | Enables unelevated variant.
stroked | Boolean | Enables stroked variant.
outlined | Boolean | Enables outlined variant.
icon | Element | Icon to render within root element.
children | String | Text to be displayed within root element.
disabled | Boolean | Disables button if true.
Expand Down
8 changes: 4 additions & 4 deletions packages/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class Button extends Component {
className,
raised,
unelevated,
stroked,
outlined,
icon,
children,
initRipple,
Expand All @@ -20,7 +20,7 @@ export class Button extends Component {
const classes = classnames('mdc-button', className, {
'mdc-button--raised': raised,
'mdc-button--unelevated': unelevated,
'mdc-button--stroked': stroked,
'mdc-button--outlined': outlined,
});

return (
Expand Down Expand Up @@ -51,7 +51,7 @@ export class Button extends Component {
Button.propTypes = {
raised: PropTypes.bool,
unelevated: PropTypes.bool,
stroked: PropTypes.bool,
outlined: PropTypes.bool,
disabled: PropTypes.bool,
unbounded: PropTypes.bool,
initRipple: PropTypes.func,
Expand All @@ -63,7 +63,7 @@ Button.propTypes = {
Button.defaultProps = {
raised: false,
unelevated: false,
stroked: false,
outlined: false,
disabled: false,
unbounded: false,
initRipple: () => {},
Expand Down
2 changes: 1 addition & 1 deletion test/screenshot/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ReactDOM.render((
<Button raised>Raised</Button>
</div>
<div className='button-container'>
<Button stroked>Stroked</Button>
<Button outlined>Outlined</Button>
</div>
<div className='button-container'>
<Button unelevated>Unelevated</Button>
Expand Down
6 changes: 3 additions & 3 deletions test/unit/button/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ test('renders a unelevated button', () => {
assert.isTrue(wrapper.hasClass('mdc-button--unelevated'));
});

test('renders a stroked button', () => {
const wrapper = shallow(<Button stroked />);
assert.isTrue(wrapper.hasClass('mdc-button--stroked'));
test('renders a outlined button', () => {
const wrapper = shallow(<Button outlined />);
assert.isTrue(wrapper.hasClass('mdc-button--outlined'));
});

test('default initRipple function', () => {
Expand Down

0 comments on commit 3a1bc59

Please sign in to comment.