prevent global override to affecting preview-block

This commit is contained in:
Henry Jameson 2024-11-14 17:26:14 +02:00
parent 8901552112
commit ae55374841

View file

@ -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')
}