Skip to content

Commit

Permalink
docs(material/theming): get-color-from-palette passes in '500' instea…
Browse files Browse the repository at this point in the history
…d of 500 (#27774)

Changes value in doc from string to number

fixes #27630

(cherry picked from commit ac06c98)
  • Loading branch information
nathanejbrown authored and mmalerba committed Sep 26, 2023
1 parent 451d0e5 commit bfff63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ hue's number identifier with `-contrast`.
$my-palette: mat.define-palette(mat.$indigo-palette);

.my-custom-style {
background: mat.get-color-from-palette($my-palette, '500');
background: mat.get-color-from-palette($my-palette, 500);
color: mat.get-color-from-palette($my-palette, '500-contrast');
}
```
Expand Down

0 comments on commit bfff63f

Please sign in to comment.