fix(button,tabs): potential clash with typography styles (#4915)

Since the buttons and tabs depend on their `line-height` for sizing, we shouldn't override it via the typography styles. This fix removes the `line-height` that is set from the typography, in order to prevent potential issues.
This commit is contained in:
Kristiyan Kostadinov
2017-06-01 22:26:52 +02:00
committed by mmalerba
parent 4c9871427b
commit 615fa2a3fc
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -120,6 +120,10 @@
@mixin mat-button-typography($config) {
.mat-button, .mat-raised-button, .mat-icon-button {
@include mat-typography-level-to-styles($config, button);
font: {
family: mat-font-family($config);
size: mat-font-size($config, button);
weight: mat-font-weight($config, button);
}
}
}
+5 -1
View File
@@ -46,6 +46,10 @@
}
.mat-tab-label, .mat-tab-link {
@include mat-typography-level-to-styles($config, button);
font: {
family: mat-font-family($config);
size: mat-font-size($config, button);
weight: mat-font-weight($config, button);
}
}
}