From 94fc8c6da8b0983bf0f8311b8b178167ce135cc1 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 1 Oct 2024 22:43:42 +0300 Subject: [PATCH] Add font scope class to body --- apps/showcase/layouts/AppConfigurator.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/showcase/layouts/AppConfigurator.vue b/apps/showcase/layouts/AppConfigurator.vue index b09cb216f..c8e1c8ca1 100755 --- a/apps/showcase/layouts/AppConfigurator.vue +++ b/apps/showcase/layouts/AppConfigurator.vue @@ -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 }); }