Skip to content

Commit 3486e30

Browse files
committed
Move the overlay coloring to the button theme.
1 parent 9d02e84 commit 3486e30

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lib/button/_button-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
background-color: md-color($accent);
8181
color: md-color($accent, default-contrast);
8282
}
83+
84+
.md-button-focus-overlay {
85+
@include md-high-contrast {
86+
background-color: if(map_get($theme, is-dark), rgba(black, 0.5), rgba(white, 0.5));
87+
}
88+
}
8389
}
8490

8591

src/lib/button/button.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@
8080
border-radius: inherit;
8181
pointer-events: none;
8282
opacity: 0;
83-
84-
@include md-high-contrast {
85-
background-color: rgba(white, 0.5);
86-
}
8783
}
8884

8985
// For round buttons, the ripple container should clip child ripples to a circle.

0 commit comments

Comments
 (0)