chore: minor prototype fixes (#15907)

* chore: minor prototype fixes

* Fixes an e2e test failure in the slide toggle prototype.
* Fixes the underlines not being reset in the menu item.

* add comment for CSS override
This commit is contained in:
Kristiyan Kostadinov
2019-04-26 00:30:00 +02:00
committed by mmalerba
parent b730ba856c
commit 7469c09619
2 changed files with 11 additions and 0 deletions
@@ -37,6 +37,7 @@
color: inherit;
font-size: inherit;
background: none;
text-decoration: none;
&[disabled] {
cursor: default;
@@ -40,4 +40,14 @@
.mat-ripple-element {
opacity: map-get($mdc-ripple-dark-ink-opacities, press);
}
// Angular Material supports disabling all animations when NoopAnimationsModule is imported.
// TODO(mmalerba): Look into using MDC's Sass queries to separate the animation styles and
// conditionally add them. Consider the size cost when deciding whether to switch.
&._mat-animation-noopable {
.mdc-switch__thumb-underlay,
.mdc-switch__thumb-underlay::before {
transition: none;
}
}
}