Skip to content

Commit 3f727a2

Browse files
authored
fix(material-experimental/mdc-dialog): remove extra outline in high contrast mode (#24140)
MDC have started including their own `border` in high contrast mode so our `outline` isn't necessary anymore.
1 parent a5fb8f8 commit 3f727a2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@use '@material/dialog' as mdc-dialog;
22
@use '../mdc-helpers/mdc-helpers';
33
@use './mdc-dialog-structure-overrides';
4-
@use '../../cdk/a11y';
54

65
// Dialog content max height. This has been copied from the standard dialog
76
// and is needed to make the dialog content scrollable.
@@ -17,10 +16,6 @@ $mat-dialog-button-horizontal-margin: 8px !default;
1716
// The dialog container is focusable. We remove the default outline shown in browsers.
1817
.mat-mdc-dialog-container {
1918
outline: 0;
20-
21-
@include a11y.high-contrast(active, off) {
22-
outline: solid 1px;
23-
}
2419
}
2520

2621
// MDC sets the display behavior for title and actions, but not for content. Since we support

0 commit comments

Comments
 (0)