-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(style): allow palettes to specify a separate hue for colored text #15149
Conversation
I couldn't run the pre-commit hooks due to this issue with clang-format. |
src/lib/core/theming/_theming.scss
Outdated
@@ -14,11 +14,12 @@ | |||
// @param $color-map | |||
// @param $primary | |||
// @param $lighter | |||
@function mat-palette($base-palette, $default: 500, $lighter: 100, $darker: 700) { | |||
@function mat-palette($base-palette, $default: 500, $lighter: 100, $darker: 700, $text: 500) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text
-> text-hue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept it to $text
for consistency with $default
etc - but happy to change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair- they're all hues now that I think about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fca738b
to
0adce23
Compare
0adce23
to
cb6a989
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
New
text
hue will default to 500 for backwards compatibility.Fixes #15148