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

Commit 15a4d40

Browse files
EstebanG23copybara-github
authored andcommitted
feat(snackbar): Add 1px transparent border for high contrast support
PiperOrigin-RevId: 355295203
1 parent fb79393 commit 15a4d40

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/mdc-snackbar/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@use '@material/icon-button/mixins' as icon-button-mixins;
2727
@use '@material/ripple/ripple-theme';
2828
@use '@material/rtl/mixins' as rtl-mixins;
29+
@use '@material/dom/mixins' as dom-mixins;
2930
@use '@material/typography/typography';
3031
@use '@material/elevation/mixins' as elevation-mixins;
3132
@use '@material/shape/mixins' as shape-mixins;
@@ -97,6 +98,11 @@
9798
}
9899

99100
.mdc-snackbar__surface {
101+
// 1px border around the snackbar surface for high contrast mode.
102+
&::before {
103+
@include dom-mixins.transparent-border($query: $query);
104+
}
105+
100106
@include feature-targeting.targets($feat-structure) {
101107
@include rtl-mixins.reflexive-property(padding, 0, variables.$padding);
102108

0 commit comments

Comments
 (0)