mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
fix(module): prevent override of rootAttrs.class
This commit is contained in:
@@ -55,8 +55,7 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
|
|
||||||
// Isolate root node from portaled components
|
// Isolate root node from portaled components
|
||||||
nuxt.options.app.rootAttrs = nuxt.options.app.rootAttrs || {}
|
nuxt.options.app.rootAttrs = nuxt.options.app.rootAttrs || {}
|
||||||
// TODO: Check if already set
|
nuxt.options.app.rootAttrs.class = [nuxt.options.app.rootAttrs.class, 'isolate'].filter(Boolean).join(' ')
|
||||||
nuxt.options.app.rootAttrs.class = 'isolate'
|
|
||||||
|
|
||||||
addVitePlugin(tailwindcss)
|
addVitePlugin(tailwindcss)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user