Skip to content

Commit

Permalink
fix(material/theming): change to update comments in theming (#21824)
Browse files Browse the repository at this point in the history
fixes the comments by updating color-map with palette in material theming

fixes #21803

(cherry picked from commit 54d4b93)
  • Loading branch information
adhispace authored and mmalerba committed Feb 12, 2021
1 parent e60a02b commit 03386fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/material/core/theming/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $_mat-theme-emitted-typography: () !default;
$_mat-theme-emitted-density: () !default;

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

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

0 comments on commit 03386fc

Please sign in to comment.