Skip to content

Commit e5fce6c

Browse files
committed
fix color scheme
1 parent ce4754a commit e5fce6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export const renderGlobalColorSchemeStyles = (
8080
}
8181
css += containercss
8282
// This fixes the issue wherein if there is a background scheme and no container/base scheme, the container inherits the background scheme which may cause the text to be unreadable
83-
} else if ( containerModeColorScheme in colorSchemes && ! schemeHasValue( colorSchemes[ containerModeColorScheme ] ) &&
84-
backgroundModeColorScheme in colorSchemes && schemeHasValue( colorSchemes[ backgroundModeColorScheme ] ) ) {
83+
} else if ( containerModeColorScheme in colorSchemes && ! schemeHasValue( colorSchemes[ containerModeColorScheme ] ) ) {
8584
const containercss = `.stk-container:where(:not(.stk--no-background)){ ${ getDefaultColors() } }\n`
8685

8786
css += applyFilters( 'stackable.global-settings.global-color-schemes.default-container-scheme', containercss )

0 commit comments

Comments
 (0)