Skip to content

Commit

Permalink
!fixup fix(material/list): tokenize active-indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
zarend committed Feb 14, 2024
1 parent dee7d0f commit a5cabf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/material-experimental/theming/_custom-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
/// @param {Map} $systems The MDC system tokens
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
/// @return {Map} A set of custom tokens for the mat-list
@function list-active-indicator($systems, $exclude-hardcoded) {
@function list($systems, $exclude-hardcoded) {
@return (
active-indicator-color: map.get($systems, md-sys-color, secondary-container),
active-indicator-shape: map.get($systems, md-sys-shape, corner-full),
Expand Down
2 changes: 1 addition & 1 deletion src/material-experimental/theming/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
),
_namespace-tokens(
(mat, list),
custom-tokens.list-active-indicator($systems, $exclude-hardcoded),
custom-tokens.list($systems, $exclude-hardcoded),
$token-slots
),
_namespace-tokens(
Expand Down
11 changes: 6 additions & 5 deletions src/material/core/tokens/m2/mat/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ $prefix: (mat, list);
// Tokens that can't be configured through Angular Material's current theming API,
// but may be in a future version of the theming API.
@function get-unthemable-tokens() {
@return ();
}

// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme) {
@return (
// active indicator themable with M3
active-indicator-color: transparent,
active-indicator-shape: 0,
);
}

// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme) {
@return ();
}

// Tokens that can be configured through Angular Material's typography theming API.
@function get-typography-tokens($theme) {
@return ();
Expand Down

0 comments on commit a5cabf1

Please sign in to comment.