Skip to content

Commit 135cc2a

Browse files
brianferrybennypowers
authored andcommitted
fix(styles): making color palette css more explicit on color-context
1 parent 5378a09 commit 135cc2a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

core/pfe-core/controllers/color-context.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* background must create a new `dark` context for its descendents
99
*/
1010

11-
:host(:is([color-palette^=dark])) {
11+
:host(:is([color-palette=darker],[color-palette=darkest])) {
1212
--context: dark;
1313
--pfe-broadcasted--text: var(--pfe-theme--color--text--on-dark, #fff);
1414
--pfe-broadcasted--text--muted: var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);
@@ -22,8 +22,7 @@
2222
--pfe-broadcasted--link-decoration--visited: var(--pfe-theme--link-decoration--visited--on-dark, none);
2323
}
2424

25-
:host(:is([color-palette^=light])),
26-
:host(:is([color-palette=base])) {
25+
:host(:is([color-palette=lighter],[color-palette=lightest],[color-palette=base])) {
2726
--context: light;
2827
--pfe-broadcasted--text: var(--pfe-theme--color--text, #151515);
2928
--pfe-broadcasted--text--muted: var(--pfe-theme--color--text--muted, #6a6e73);
@@ -37,9 +36,7 @@
3736
--pfe-broadcasted--link-decoration--visited: var(--pfe-theme--link-decoration--visited, none);
3837
}
3938

40-
:host(:is([color-palette=accent])),
41-
:host(:is([color-palette=complement])),
42-
:host(:is([color-palette=saturated])) {
39+
:host(:is([color-palette=accent],[color-palette=complement],[color-palette=saturated])) {
4340
--context: saturated;
4441
--pfe-broadcasted--text: var(--pfe-theme--color--text--on-saturated, #fff);
4542
--pfe-broadcasted--text--muted: var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);

0 commit comments

Comments
 (0)