Skip to content

Commit c030908

Browse files
committed
feat(MdApp): add support for md-display-2 as the flexible header
1 parent 14d68b6 commit c030908

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/components/MdApp/MdAppToolbar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
},
3232
mounted () {
33-
const title = this.$el.querySelector('.md-title, .md-display-1')
33+
const title = this.$el.querySelector('.md-title, .md-display-1, .md-display-2')
3434
3535
this.MdApp.toolbar.element = this.$el
3636
this.MdApp.toolbar.titleElement = title

src/components/MdToolbar/MdToolbar.vue

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
}
119119
}
120120
121+
.md-display-2,
122+
.md-display-1,
121123
.md-title {
122124
margin: 0;
123125
margin-left: 8px;

src/components/MdToolbar/theme.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
@mixin md-toolbar-title($primary, $secondary) {
1717
.md-title,
18-
.md-display-1 {
18+
.md-display-1,
19+
.md-display-2 {
1920
@include md-theme-property(color, $primary, $secondary);
2021
}
2122
}

0 commit comments

Comments
 (0)