Skip to content

Commit 1219b1e

Browse files
authored
fix(material-experimental/mdc-dialog): blending in with background in high contrast mode (#20387)
The MDC dialog was blending in with the page background, because it doesn't have a border or an outline.
1 parent f2953dd commit 1219b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import '@material/dialog/variables.import';
33
@import '../mdc-helpers/mdc-helpers';
44
@import './mdc-dialog-structure-overrides';
5+
@import '../../cdk/a11y/a11y';
56

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

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

0 commit comments

Comments
 (0)