Skip to content

Commit ac06c98

Browse files
docs(material/theming): get-color-from-palette passes in '500' instead of 500 (#27774)
Changes value in doc from string to number fixes #27630
1 parent 4c3ef50 commit ac06c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ hue's number identifier with `-contrast`.
363363
$my-palette: mat.define-palette(mat.$indigo-palette);
364364

365365
.my-custom-style {
366-
background: mat.get-color-from-palette($my-palette, '500');
366+
background: mat.get-color-from-palette($my-palette, 500);
367367
color: mat.get-color-from-palette($my-palette, '500-contrast');
368368
}
369369
```

0 commit comments

Comments
 (0)