mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
mmalerba
parent
4c9871427b
commit
615fa2a3fc
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user