Skip to content

Commit b1d8437

Browse files
committed
fixup! Add the new mat.theme API
1 parent 2ce0c77 commit b1d8437

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

src/material-experimental/BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ ts_library(
1919

2020
sass_library(
2121
name = "theming_scss_lib",
22-
srcs = MATERIAL_EXPERIMENTAL_SCSS_LIBS,
22+
srcs = MATERIAL_EXPERIMENTAL_SCSS_LIBS + [
23+
"//src/material-experimental/theming:theming_scss_lib",
24+
],
2325
)
2426

2527
sass_library(
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
load("//tools:defaults.bzl", "sass_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
sass_library(
6+
name = "theming_scss_lib",
7+
srcs = glob(["**/_*.scss"]),
8+
deps = ["//src/material:sass_lib"],
9+
)

src/material/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ sass_library(
2424
srcs = [
2525
"_index.scss",
2626
"_theming.scss",
27+
"_token-theming.scss",
2728
],
2829
deps = [
2930
"//src/material/core:core_scss_lib",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@use 'sass:map';
33
@use '../../token-utils';
44
@use '../../../mdc-helpers/mdc-helpers';
5+
@use '../../../style/sass-utils';
56
@use '../../../theming/theming';
67
@use '../../../typography/typography-utils';
78

@@ -304,7 +305,7 @@ $prefix: (mdc, chip);
304305
// Combines the tokens generated by the above functions into a single map with placeholder values.
305306
// This is used to create token slots.
306307
@function get-token-slots() {
307-
@return token-utils.merge-all(
308+
@return sass-utils.deep-merge-all(
308309
get-unthemable-tokens(),
309310
get-color-tokens(token-utils.$placeholder-color-config),
310311
get-typography-tokens(token-utils.$placeholder-typography-config),

0 commit comments

Comments
 (0)