Skip to content

Commit

Permalink
fix: docs & portal not parse :--dark-context-safe
Browse files Browse the repository at this point in the history
The result is `:--dark-context-safe` ends up in CSS & causes ugly error:

```
[Deprecation] Custom state pseudo classes have been changed from ":--dark-context-safe" to ":state(dark-context-safe)". See more here: <URL>
```
  • Loading branch information
wesleyboar committed Sep 5, 2024
1 parent 4324e74 commit 511c468
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/core-styles.docs.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-styles.portal.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings/color--docs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/settings/color--portal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/lib/_imports/settings/color--docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/* Set scope for accent colors */
@custom-selector :--light-context-safe
:root;
@custom-selector :--dark-context-safe
.u-dark-context;
3 changes: 3 additions & 0 deletions src/lib/_imports/settings/color--portal.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/* Set scope for accent colors */
@custom-selector :--light-context-safe
:root;
@custom-selector :--dark-context-safe
.u-dark-context;


/* Override other colors from base */
/* FAQ: Updating portal colors was delayed (to reduce complexity of TUP redesign) */
Expand Down

0 comments on commit 511c468

Please sign in to comment.