Skip to content

Commit b7ca492

Browse files
aanchal88crisbeto
authored andcommitted
docs: fix reading hues from palettes (#27122)
(cherry picked from commit af48db8)
1 parent a0aa14f commit b7ca492

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)