[✨] Access first component's element in CSS's parent page #159
GrandSchtroumpf
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
|
We moved this issue to |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
I'm using a scoped styled components inside a scoped style page for safe styling, but accessible the component in my CSS is not easy :
If I want to update the style of the accordion in my page (width, margin, ...) I'll have to use
:global():This has two problems :
Describe the solution you'd like
There are some solutions depending on ho hard this is :
scopedClass(or better naming) attribute that would access the scopeId of the current component and apply it to the first child:Describe alternatives you've considered
Using
useStylesUsing :global
Passing css module
Passing the
scopeIdin the class:<Accordion class={[scopedId, 'accordion']}>Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions