mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(button): inconsistent overflow value between browsers (#9933)
By default most browsers will set the button overflow to `visible`, however it's `hidden` on IE. This is particularly visible on buttons with badges. These changes add a default value so the buttons are consistent between browsers.
This commit is contained in:
committed by
Jeremy Elbourn
parent
9d784a04d3
commit
9d19291feb
@@ -53,6 +53,10 @@ $mat-mini-fab-padding: 8px !default;
|
||||
padding: $mat-button-padding;
|
||||
border-radius: $mat-button-border-radius;
|
||||
|
||||
// Explicitly set the default overflow to `visible`. It is already set
|
||||
// on most browsers except on IE11 where it defaults to `hidden`.
|
||||
overflow: visible;
|
||||
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user