fix(button): add transition to focus overlay (#2850)

* Adds a transition to the button focus overlay -It still shows up very fast, it just feels a bit smoother (similar as in MDL and M1)
This commit is contained in:
Paul Gschwendtner
2017-02-17 01:56:55 +01:00
committed by Andrew Seguin
parent 8541f8e351
commit 6cdd8db5d2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ $mat-button-min-width: 88px !default;
$mat-button-margin: 0 !default;
$mat-button-line-height: 36px !default;
$mat-button-border-radius: 2px !default;
$mat-button-focus-transition: opacity 200ms $swift-ease-in-out-timing-function !default;
// Icon Button standards
$mat-icon-button-size: 40px !default;
+2
View File
@@ -81,6 +81,8 @@
pointer-events: none;
opacity: 0;
transition: $mat-button-focus-transition;
@include cdk-high-contrast {
// Note that IE will render this in the same way, no
// matter whether the theme is light or dark. This helps