-
Notifications
You must be signed in to change notification settings - Fork 219
Pull theme specific styling to a dedicated theme.scss #1334
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I agree that we're going to need a coordinated approach to how our "base" styles interact with themes, and a separate scss module may be a useful part of that. There's extensive discussion of this area in Gutenberg core: WordPress/gutenberg#9534 Drive by idea for the connected line / circled numbers – can we implement this with a margin or extra div around the number? Or padding (inset) on the div for the line? Maybe there's a way we can implement this without needing to know background color. |
I implemented that design with another method that doesn’t require the use of a background color |
@senadir since you found a solution, do we need to still explore adding a theme.scss file? I'd prefer to stay away from having workarounds for specific themes because that introduces something that has to be regularly maintained as themes change. It also introduces weight around what themes we'd officially support with such a file. Are you okay with closing this issue for now and we can revisit in the future if needed? |
I'm with you on supporting themes and adding compatibility weight, we might still want some custom styling for the frontend but I see no need for that right now since |
Currently, we store our styles in two places,
styles.scss
andeditor.scss
, but sometimes, we have some cases wherein isolation, a component works fine, but shows deference results in both the editor and theme frontend, this would have been fine if out components are used in a single place, but most components are used both frontend and backend, and if we wish to publish them in the future, we can’t put everything instyles.scss
.Example of a broken experience in TwentyTwenty, the white background on the step number is necessary to create the disconnected line design, but since 2020 introduces another background color that is not white, we need to account for it.
What I'm suggesting:
theme.scss
file that is not present in the editor and is responsible for handling quirky theme cases.The text was updated successfully, but these errors were encountered: