Skip to content

Commit

Permalink
Distinguish between buttons with focus overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Mar 29, 2017
1 parent 94e2411 commit ffa6d2b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/lib/button/_button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
background: transparent;

@include _mat-button-theme-color($theme, 'color');
@include _mat-button-ripple-color($theme, default, 0.1);
}

.mat-raised-button, .mat-fab, .mat-mini-fab {
Expand All @@ -95,8 +94,21 @@

@include _mat-button-theme-color($theme, 'color', default-contrast);
@include _mat-button-theme-color($theme, 'background-color');

// Add ripple effect with contrast color to buttons that don't have a focus overlay.
@include _mat-button-ripple-color($theme, default-contrast);
}

// Add ripple effect with default color to the flat button, which doesn't have a focus overlay.
.mat-button {
@include _mat-button-ripple-color($theme, default, 0.1);
}

// Add ripple effect with default color to the icon button. Ripple color needs to be stronger
// since the icon button doesn't have a focus overlay.
.mat-icon-button {
@include _mat-button-ripple-color($theme, default);
}

// TODO(devversion): The color class accent should be just set from TS code. No need for this.
.mat-fab, .mat-mini-fab {
Expand Down

0 comments on commit ffa6d2b

Please sign in to comment.