Skip to content

Commit a8033ad

Browse files
committed
test(material/dialog): add tokens test (#27343)
Adds a test for the dialog tokens since one wasn't added when the dialog was converted to tokens. (cherry picked from commit 798634e)
1 parent bfaa20f commit a8033ad

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/material/core/tokens/m2/mdc/_dialog.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $prefix: (mdc, dialog);
5050
headline-size: null,
5151
headline-tracking: null,
5252
headline-weight: null,
53+
z-index: null,
5354
);
5455
}
5556

src/material/core/tokens/tests/test-validate-tokens.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@use '@material/tab/tab-theme' as mdc-tab-theme;
1515
@use '@material/snackbar/snackbar-theme' as mdc-snackbar-theme;
1616
@use '@material/chips/chip-theme' as mdc-chips-theme;
17+
@use '@material/dialog/dialog-theme' as mdc-dialog-theme;
1718
@use '@material/theme/validate' as mdc-validate;
1819

1920
@use '../m2/mdc/circular-progress' as tokens-mdc-circular-progress;
@@ -29,6 +30,7 @@
2930
@use '../m2/mdc/tab' as tokens-mdc-tab;
3031
@use '../m2/mdc/snack-bar' as tokens-mdc-snack-bar;
3132
@use '../m2/mdc/chip' as tokens-mdc-chip;
33+
@use '../m2/mdc/dialog' as tokens-mdc-dialog;
3234

3335
@mixin validate-slots($component, $slots, $reference) {
3436
@debug 'Validating #{$component}...';
@@ -107,3 +109,8 @@
107109
$slots: tokens-mdc-chip.get-token-slots(),
108110
$reference: mdc-chips-theme.$light-theme
109111
);
112+
@include validate-slots(
113+
$component: 'm2.mdc.dialog',
114+
$slots: tokens-mdc-dialog.get-token-slots(),
115+
$reference: mdc-dialog-theme.$light-theme
116+
);

0 commit comments

Comments
 (0)