You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when we come up with a new component and CSS, we have to come up with a CSS class name that is good enough and specific enough that it won't accidentally clash or cause conflicts with other components. Example: .woocommerce-marketing-installed-extensions-card.
The problems with this are:
We still got to come up with the class name on our own.
There is still potential class name conflict (albeit small chance of it happening).
As per the discussion in PR #71 and subsequently the demo PR #76, because there are many existing things in SCSS that we can't easily port over to JavaScript, we will be putting CSS-in-JS / Emotion library aside and stick to using SCSS way for now.
This is a follow-up on #63 (comment).
The problem:
Currently when we come up with a new component and CSS, we have to come up with a CSS class name that is good enough and specific enough that it won't accidentally clash or cause conflicts with other components. Example:
.woocommerce-marketing-installed-extensions-card
.The problems with this are:
Possible solution is to look into things like styled-components. Gutenberg project uses @emotion/styled, we can probably consider Emotion library.
The text was updated successfully, but these errors were encountered: