Add font scope class to body
parent
145ba6f76b
commit
94fc8c6da8
|
@ -259,8 +259,12 @@ export default {
|
||||||
const preset = presets[value];
|
const preset = presets[value];
|
||||||
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
|
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
|
||||||
|
|
||||||
if (value === 'Material') document.documentElement.classList.add('material');
|
if (value === 'Material') {
|
||||||
else document.documentElement.classList.remove('material');
|
document.body.classList.add('material');
|
||||||
|
this.$primevue.config.ripple = true;
|
||||||
|
} else {
|
||||||
|
document.body.classList.remove('material');
|
||||||
|
}
|
||||||
|
|
||||||
$t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
|
$t().preset(preset).preset(this.getPresetExt()).surfacePalette(surfacePalette).use({ useDefaultOptions: true });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue