Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat(button): Synchronise with mdc-web (#96)
Browse files Browse the repository at this point in the history
BREAKING CHANGES: Stroked prop is renamed to outlined.
  • Loading branch information
matsp committed Apr 24, 2018
1 parent 028eb1e commit b90c911
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions components/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
type: Boolean,
default: false
},
stroked: {
outlined: {
type: Boolean,
default: false
},
Expand Down Expand Up @@ -64,7 +64,7 @@ export default {
return {
'mdc-button--raised': this.raised,
'mdc-button--unelevated': this.unelevated,
'mdc-button--stroked': this.stroked,
'mdc-button--outlined': this.outlined,
'mdc-button--dense': this.dense
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
|------|------|---------|-------------|
| raised | Boolean | false | raised button |
| unelevated | Boolean | false | unelevated button |
| stroked | Boolean | false | stroked button |
| outlined | Boolean | false | outlined button |
| dense | Boolean | false | dense button |
| interactive | Boolean | false | button with ripple effect |
| href | String | ' ' | link button |
Expand Down
12 changes: 6 additions & 6 deletions demo/views/ButtonView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@
</m-layout-grid-inner>
</m-layout-grid-cell>
<m-layout-grid-cell :span="12">
<m-typo-title>Stroked</m-typo-title>
<m-typo-title>Outlined</m-typo-title>
<m-layout-grid-inner>
<m-layout-grid-cell :span="2">
<m-button stroked>baseline</m-button>
<m-button outlined>baseline</m-button>
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-button
stroked
outlined
interactive>
interactive
</m-button>
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-button stroked>
<m-button outlined>
<m-icon
slot="icon"
icon="cloud"/>
Expand All @@ -122,14 +122,14 @@
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-button
stroked
outlined
dense>
dense
</m-button>
</m-layout-grid-cell>
<m-layout-grid-cell :span="2">
<m-button
stroked
outlined
disabled>
disabled
</m-button>
Expand Down

0 comments on commit b90c911

Please sign in to comment.