Skip to content

Commit

Permalink
fixup! Add the new mat.theme API
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed May 17, 2023
1 parent 2ce0c77 commit b1d8437
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/material-experimental/BUILD.bazel
Expand Up @@ -19,7 +19,9 @@ ts_library(

sass_library(
name = "theming_scss_lib",
srcs = MATERIAL_EXPERIMENTAL_SCSS_LIBS,
srcs = MATERIAL_EXPERIMENTAL_SCSS_LIBS + [
"//src/material-experimental/theming:theming_scss_lib",
],
)

sass_library(
Expand Down
9 changes: 9 additions & 0 deletions src/material-experimental/theming/BUILD.bazel
@@ -0,0 +1,9 @@
load("//tools:defaults.bzl", "sass_library")

package(default_visibility = ["//visibility:public"])

sass_library(
name = "theming_scss_lib",
srcs = glob(["**/_*.scss"]),
deps = ["//src/material:sass_lib"],
)
1 change: 1 addition & 0 deletions src/material/BUILD.bazel
Expand Up @@ -24,6 +24,7 @@ sass_library(
srcs = [
"_index.scss",
"_theming.scss",
"_token-theming.scss",
],
deps = [
"//src/material/core:core_scss_lib",
Expand Down
3 changes: 2 additions & 1 deletion src/material/core/tokens/m2/mdc/_chip.scss
Expand Up @@ -2,6 +2,7 @@
@use 'sass:map';
@use '../../token-utils';
@use '../../../mdc-helpers/mdc-helpers';
@use '../../../style/sass-utils';
@use '../../../theming/theming';
@use '../../../typography/typography-utils';

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

0 comments on commit b1d8437

Please sign in to comment.