Support for Web Components / Shadow DOM #439
graphographer
started this conversation in
Ideas
Replies: 2 comments
-
Hi |
Beta Was this translation helpful? Give feedback.
0 replies
-
I made a PR to effect this change #641 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there! I recently used Pico CSS on a contract job and it was overall a very nice experience.
However, as I was using web components and shadow DOM, I had to do some minor surgery to the SCSS source to get it to work properly. This simply meant replacing references to
:root
with:host
. This specifically had to happen incommon-styles.scss
anddocument.scss
.Perhaps you could replace hard-coded instances of
:root
with a variable, similar to$semantic-root-element
? or simply add to the selector,:root, :host
.There may be edge-case subtleties here so I'd love to participate in discussions about this.
Beta Was this translation helpful? Give feedback.
All reactions