mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +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
|
||||
nuxt.options.app.rootAttrs = nuxt.options.app.rootAttrs || {}
|
||||
// TODO: Check if already set
|
||||
nuxt.options.app.rootAttrs.class = 'isolate'
|
||||
nuxt.options.app.rootAttrs.class = [nuxt.options.app.rootAttrs.class, 'isolate'].filter(Boolean).join(' ')
|
||||
|
||||
addVitePlugin(tailwindcss)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user