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

Commit

Permalink
feat(switch): Add elevation overlay structure (#5281)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrodee authored Dec 10, 2019
1 parent c916008 commit 50f110a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mdc-switch/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
$feat-animation: mdc-feature-create-target($query, animation);
$feat-structure: mdc-feature-create-target($query, structure);

@include mdc-elevation-overlay-common($query);
@include mdc-switch-density($mdc-switch-density-scale, $query: $query);

.mdc-switch {
Expand Down Expand Up @@ -325,6 +326,8 @@
$feat-structure: mdc-feature-create-target($query, structure);
$feat-color: mdc-feature-create-target($query, color);

@include mdc-elevation-overlay-surface-position($query: $query);
@include mdc-elevation-overlay-dimensions($mdc-switch-thumb-diameter, $has-content-sizing: false, $query: $query);
@include mdc-elevation($z-value: 2, $query: $query);

@include mdc-feature-targets($feat-structure) {
Expand Down

0 comments on commit 50f110a

Please sign in to comment.