Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
feat(tabs): Use new ripple mixins (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro authored Oct 27, 2017
1 parent b2a97ea commit 253fba0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/mdc-tabs/tab/mdc-tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,16 @@ $mdc-tab-with-icon-and-text-height: 72px;
// stylelint-enable plugin/selector-bem-pattern

.mdc-tab.mdc-ripple-upgraded {
@include mdc-ripple-base;
@include mdc-ripple-fg((pseudo: "::after"));
@include mdc-ripple-bg((pseudo: "::before"));
@include mdc-ripple-surface;
@include mdc-ripple-color;
@include mdc-ripple-radius;

@include mdc-theme-dark(".mdc-tab-bar") {
@include mdc-ripple-bg((pseudo: "::before", base-color: map-get($mdc-theme-property-values, text-primary-on-dark), opacity: .16));
@include mdc-ripple-fg((pseudo: "::after", base-color: map-get($mdc-theme-property-values, text-primary-on-dark), opacity: .16));
@include mdc-ripple-color(text-primary-on-dark, .16);
}

.mdc-toolbar & {
@include mdc-ripple-bg((pseudo: "::before", base-color: map-get($mdc-theme-property-values, text-primary-on-primary), opacity: .16));
@include mdc-ripple-fg((pseudo: "::after", base-color: map-get($mdc-theme-property-values, text-primary-on-primary), opacity: .16));
@include mdc-ripple-color(text-primary-on-primary, .16);
}

// stylelint-disable plugin/selector-bem-pattern
Expand Down

0 comments on commit 253fba0

Please sign in to comment.