Skip to content

Commit

Permalink
feat(mdc-top-app-bar): Support dense mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pgbross authored and pgbross committed Apr 5, 2018
1 parent 6a7616e commit bf72305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/top-app-bar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ top-app-bars scroll with content by default.
| -------------- | ------- | -------- | --------------------------------------------------------------- |
| `short` | Boolean | | Short top app bars should only be used with one action item |
| `collapsed` | String | false | Short top app bars can be configured to always appear collapsed |
| `dense` | Boolean | false | optional changes tpo app bar to be dense |
| `event` | String | optional | optional event to emit on navigation click |
| `event-target` | Object | vm.$root | optional event target, defaults to root bus |

Expand Down
2 changes: 2 additions & 0 deletions components/top-app-bar/mdc-top-app-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ export default {
default: 'menu',
},
iconClasses: Object,
dense: Boolean,
},
data() {
return {
rootClasses: {
'mdc-top-app-bar': true,
'mdc-top-app-bar--dense': this.dense,
'mdc-top-app-bar--short': this.short,
'mdc-top-app-bar--short-collapsed': this.shortCollapsed,
},
Expand Down

0 comments on commit bf72305

Please sign in to comment.