Open webexpr-dhenriet opened 3 months ago
I've seen a similar discussion somewhere but can't find it now.
@ndiego, do you remember anything related/similar?
@Mamaduka -
It's been a source of frustration for myself and several others but the reasons are outlined in https://github.com/WordPress/gutenberg/issues/37590#issuecomment-1000253978
For CSS variables, why is the scope body and not :root ?
body { --wp--preset--color--black: #000000; }
Would it be possible to encapsulate them in :root ?
:root { --wp--preset--color--black: #000000; }
This has now been fixed (with Gutenberg plugin or WP 6.6).
@Gierand thanks for your feedback
Is there any reason to put a
!important
on all inline styles generated by theme.json ?this should be enough ? Would it be possible to remove
!important
?For CSS variables, why is the scope body and not :root ?
Would it be possible to encapsulate them in :root ?