Skip to content

Commit 54d4b93

Browse files
authored
fix(material/theming): change to update comments in theming (#21824)
fixes the comments by updating color-map with palette in material theming fixes #21803
1 parent adddf13 commit 54d4b93

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: src/material/core/theming/_theming.scss

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $_mat-theme-emitted-typography: () !default;
1717
$_mat-theme-emitted-density: () !default;
1818

1919
// For a given hue in a palette, return the contrast color from the map of contrast palettes.
20-
// @param $color-map
20+
// @param $palette
2121
// @param $hue
2222
@function mat-contrast($palette, $hue) {
2323
@return map-get(map-get($palette, contrast), $hue);
@@ -26,9 +26,11 @@ $_mat-theme-emitted-density: () !default;
2626

2727
// Creates a map of hues to colors for a theme. This is used to define a theme palette in terms
2828
// of the Material Design hues.
29-
// @param $color-map
30-
// @param $primary
29+
// @param $base-palette
30+
// @param $default
3131
// @param $lighter
32+
// @param $darker
33+
// @param $text
3234
@function mat-palette($base-palette, $default: 500, $lighter: 100, $darker: 700, $text: $default) {
3335
$result: map-merge($base-palette, (
3436
default: map-get($base-palette, $default),
@@ -56,7 +58,7 @@ $_mat-theme-emitted-density: () !default;
5658
// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
5759
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
5860
//
59-
// @param $color-map The theme palette (output of mat-palette).
61+
// @param $palette The theme palette (output of mat-palette).
6062
// @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
6163
// be treated as opacity.
6264
// @param $opacity The alpha channel value for the color.

0 commit comments

Comments
 (0)