Skip to content

Commit 7388445

Browse files
committed
remove bg color for :root
1 parent c9c6892 commit 7388445

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plugins/global-settings/color-schemes/editor-loader.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ const generateRules = ( scheme, currentHoverState = 'normal', mode = '', appendS
5454
}
5555

5656
properties.forEach( property => {
57-
if ( mode && property === 'backgroundColor' && scheme[ property ]?.desktop ) {
58-
const varname = mode === 'background' ? 'block' : 'container'
59-
decls.push( `--stk-${ varname }-background-color${ suffix }: ${ getInheritedValue( scheme[ property ], state ) };` )
57+
if ( property === 'backgroundColor' ) {
58+
if ( mode && scheme[ property ]?.desktop ) {
59+
const varname = mode === 'background' ? 'block' : 'container'
60+
decls.push( `--stk-${ varname }-background-color${ suffix }: ${ getInheritedValue( scheme[ property ], state ) };` )
61+
}
6062
return
6163
}
6264

0 commit comments

Comments
 (0)