Skip to content

Commit 798634e

Browse files
authored
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.
1 parent 53242fe commit 798634e

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
@@ -15,6 +15,7 @@
1515
@use '@material/tab/tab-theme' as mdc-tab-theme;
1616
@use '@material/snackbar/snackbar-theme' as mdc-snackbar-theme;
1717
@use '@material/chips/chip-theme' as mdc-chips-theme;
18+
@use '@material/dialog/dialog-theme' as mdc-dialog-theme;
1819
@use '@material/theme/validate' as mdc-validate;
1920

2021
@use '../m2/mdc/circular-progress' as tokens-mdc-circular-progress;
@@ -31,6 +32,7 @@
3132
@use '../m2/mdc/tab' as tokens-mdc-tab;
3233
@use '../m2/mdc/snack-bar' as tokens-mdc-snack-bar;
3334
@use '../m2/mdc/chip' as tokens-mdc-chip;
35+
@use '../m2/mdc/dialog' as tokens-mdc-dialog;
3436

3537
@mixin validate-slots($component, $slots, $reference) {
3638
@debug 'Validating #{$component}...';
@@ -114,3 +116,8 @@
114116
$slots: tokens-mdc-chip.get-token-slots(),
115117
$reference: mdc-chips-theme.$light-theme
116118
);
119+
@include validate-slots(
120+
$component: 'm2.mdc.dialog',
121+
$slots: tokens-mdc-dialog.get-token-slots(),
122+
$reference: mdc-dialog-theme.$light-theme
123+
);

0 commit comments

Comments
 (0)