Skip to content

Commit

Permalink
fix(button): add transition to focus overlay (#2850)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
devversion authored and andrewseguin committed Feb 17, 2017
1 parent 8541f8e commit 6cdd8db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/button/_button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/lib/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cdd8db

Please sign in to comment.