Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rootAttrs.class is rendering class names with spaces, e.g. "i s o l a t e" #3487

Closed
Pwntus opened this issue Mar 7, 2025 · 3 comments
Closed
Labels
bug Something isn't working upstream v3 #1289

Comments

@Pwntus
Copy link
Contributor

Pwntus commented Mar 7, 2025

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-beta.3

Reproduction

Happens on fresh install.

Description

Fresh install of Nuxt.js, with @nuxt/[email protected]
Looking at the HTML of the generated page I can see that the root element class names are split by whitespaces.

Image

The issue is not happening when using @nuxt/ui v2 - I've narrowed it down to a v3 issue.

Additional context

nuxt.config.ts:

export default defineNuxtConfig({
  app: {
    // rootTag: 'body',
    rootId: 'app',
    rootAttrs: {
      class: 'relative flex h-full'
    }
  }
}

Logs

@Pwntus Pwntus added bug Something isn't working triage v3 #1289 labels Mar 7, 2025
@abaza738
Copy link

abaza738 commented Mar 8, 2025

Hi, I'm facing the same problem.
I opened an issue for Nuxt before I saw this. It happens even without Nuxt UI.

@abaza738
Copy link

abaza738 commented Mar 8, 2025

Should be fixed according to this!

@Pwntus
Copy link
Contributor Author

Pwntus commented Mar 8, 2025

Awesome stuff, thanks for the info @abaza738 !
I'll close this issue.

@Pwntus Pwntus closed this as completed Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream v3 #1289
Projects
None yet
Development

No branches or pull requests

3 participants