Skip to content

Commit 88229e4

Browse files
author
Andrew Seguin
committed
refactor: missing tokens
1 parent 085e51d commit 88229e4

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/material/core/tokens/m3/mat/_dialog.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $prefix: (mat, dialog);
2020
actions-alignment: token-definition.hardcode(flex-end, $exclude-hardcoded),
2121
actions-padding: token-definition.hardcode(16px 24px, $exclude-hardcoded),
2222
container-color: map.get($systems, md-sys-color, surface),
23+
container-elevation-shadow: token-definition.hardcode(none, $exclude-hardcoded),
2324
container-max-width: token-definition.hardcode(560px, $exclude-hardcoded),
2425
container-min-width: token-definition.hardcode(280px, $exclude-hardcoded),
2526
container-shape: map.get($systems, md-sys-shape, corner-extra-large),

src/material/core/tokens/m3/mat/_fab-small.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ $prefix: (mat, fab-small);
6666
hover-container-elevation-shadow: map.get($systems, md-sys-elevation, level4),
6767
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
6868
pressed-container-elevation-shadow: map.get($systems, md-sys-elevation, level3),
69+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
6970
),
7071
tertiary: (
7172
foreground-color: map.get($systems, md-sys-color, on-tertiary-container),

src/material/core/tokens/m3/mat/_fab.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $prefix: (mat, fab);
3131
hover-container-elevation-shadow: map.get($systems, md-sys-elevation, level4),
3232
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
3333
pressed-container-elevation-shadow: map.get($systems, md-sys-elevation, level3),
34+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
3435
);
3536

3637
$variant-tokens: (

src/material/core/tokens/m3/mat/_radio.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ $prefix: (mat, radio);
2222
label-text-size: map.get($systems, md-sys-typescale, body-medium-size),
2323
label-text-tracking: map.get($systems, md-sys-typescale, body-medium-tracking),
2424
label-text-weight: map.get($systems, md-sys-typescale, body-medium-weight),
25-
disabled-selected-icon-color: sass-utils.safe-color-change(
26-
map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
25+
disabled-selected-icon-color: map.get($systems, md-sys-color, on-surface),
26+
disabled-selected-icon-opacity: if($exclude-hardcoded, null, 0.38),
2727
disabled-unselected-icon-color: map.get($systems, md-sys-color, on-surface),
2828
disabled-unselected-icon-opacity: if($exclude-hardcoded, null, 0.38),
2929
selected-focus-icon-color: map.get($systems, md-sys-color, primary),

src/material/core/tokens/m3/mat/_switch.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ $prefix: (mat, switch);
2222
$tokens: (
2323
disabled-selected-handle-color: map.get($systems, md-sys-color, surface),
2424
disabled-selected-handle-opacity: if($exclude-hardcoded, null, 1),
25-
disabled-selected-icon-color: sass-utils.safe-color-change(
26-
map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
25+
disabled-selected-icon-color: map.get($systems, md-sys-color, on-surface),
26+
disabled-selected-icon-opacity: if($exclude-hardcoded, null, 0.38),
2727
disabled-selected-track-color: map.get($systems, md-sys-color, on-surface),
2828
disabled-track-opacity: if($exclude-hardcoded, null, 0.12),
2929
disabled-unselected-handle-color: map.get($systems, md-sys-color, on-surface),

0 commit comments

Comments
 (0)