prevent global override to affecting preview-block
This commit is contained in:
parent
8901552112
commit
ae55374841
|
@ -219,8 +219,9 @@ export const applyConfig = (input, i18n) => {
|
|||
styleSheet.toString()
|
||||
styleSheet.insertRule(`:root { ${rules} }`, 'index-max')
|
||||
|
||||
// TODO find a way to make this not apply to theme previews
|
||||
if (Object.prototype.hasOwnProperty.call(config, 'forcedRoundness')) {
|
||||
styleSheet.insertRule(` * {
|
||||
styleSheet.insertRule(` *:not(.preview-block) {
|
||||
--roundness: var(--forcedRoundness) !important;
|
||||
}`, 'index-max')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue