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

Commit

Permalink
feat(top-app-bar): Synchronise with mdc-web v0.34.1 (add dense style)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Apr 6, 2018
1 parent 780f855 commit e85c266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/top-app-bar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ in the navigation slot!
| collapsed | Boolean | false | collapsed bar (must be short too) |
| short | Boolean | false | short bar |
| prominent | Boolean | false | prominent app bar style (could not be short too) |
| dense | Boolean | false | dense app bar style (could not be short too) |

| Event | Description |
|------|------|
Expand Down
7 changes: 6 additions & 1 deletion components/top-app-bar/TopAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export default {
prominent: {
type: Boolean,
default: false
},
dense: {
type: Boolean,
default: false
}
},
data () {
Expand All @@ -55,7 +59,8 @@ export default {
return {
'mdc-top-app-bar--short': this.short,
'mdc-top-app-bar--short-collapsed': this.collapsed && this.short,
'mdc-top-app-bar--prominent': this.prominent && !this.short
'mdc-top-app-bar--prominent': this.prominent && !this.short,
'mdc-top-app-bar--dense': this.dense && !this.short
}
}
},
Expand Down

0 comments on commit e85c266

Please sign in to comment.