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.33.0 (add prominent st…
Browse files Browse the repository at this point in the history
…yle)
  • Loading branch information
matsp committed Mar 25, 2018
1 parent af17558 commit 1e79429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/top-app-bar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ in the navigation slot!

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| collapsed | Boolean | false | collapsed bar when short too |
| 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) |

| 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 @@ -39,6 +39,10 @@ export default {
short: {
type: Boolean,
default: false
},
prominent: {
type: Boolean,
default: false
}
},
data () {
Expand All @@ -50,7 +54,8 @@ export default {
classes () {
return {
'mdc-top-app-bar--short': this.short,
'mdc-top-app-bar--short-collapsed': this.collapsed && this.short
'mdc-top-app-bar--short-collapsed': this.collapsed && this.short,
'mdc-top-app-bar--prominent': this.prominent && !this.short
}
}
},
Expand Down

0 comments on commit 1e79429

Please sign in to comment.