Add font scope class to body

pull/6275/head^2
Cagatay Civici 2024-10-01 22:43:42 +03:00
parent 145ba6f76b
commit 94fc8c6da8
1 changed files with 6 additions and 2 deletions

View File

@ -259,8 +259,12 @@ export default {
const preset = presets[value];
const surfacePalette = this.surfaces.find((s) => s.name === this.selectedSurfaceColor)?.palette;
if (value === 'Material') document.documentElement.classList.add('material');
else document.documentElement.classList.remove('material');
if (value === '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 });
}