Skip to content

fix(material/theming): change to update comments in theming #21824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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