Skip to content

Commit 7469c09

Browse files
crisbetommalerba
authored andcommitted
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
1 parent b730ba8 commit 7469c09

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/material-experimental/mdc-menu/menu.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
color: inherit;
3838
font-size: inherit;
3939
background: none;
40+
text-decoration: none;
4041

4142
&[disabled] {
4243
cursor: default;

src/material-experimental/mdc-slide-toggle/slide-toggle.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,14 @@
4040
.mat-ripple-element {
4141
opacity: map-get($mdc-ripple-dark-ink-opacities, press);
4242
}
43+
44+
// Angular Material supports disabling all animations when NoopAnimationsModule is imported.
45+
// TODO(mmalerba): Look into using MDC's Sass queries to separate the animation styles and
46+
// conditionally add them. Consider the size cost when deciding whether to switch.
47+
&._mat-animation-noopable {
48+
.mdc-switch__thumb-underlay,
49+
.mdc-switch__thumb-underlay::before {
50+
transition: none;
51+
}
52+
}
4353
}

0 commit comments

Comments
 (0)