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

bodyAttrs.class is do not expand properly #806

Open
nyagihime opened this issue Jun 26, 2023 · 0 comments
Open

bodyAttrs.class is do not expand properly #806

nyagihime opened this issue Jun 26, 2023 · 0 comments

Comments

@nyagihime
Copy link

I was hoping that if I set an array in bodyAttrs.class, it would be expanded with a space delimiter, but unfortunately it seems to be output with a comma delimiter and I cannot apply the style sheet correctly.

For example, set the following code:

metaInfo: {
  bodyAttrs: {
    class: ['foo', 'bar']
  }
}

The expected class value of body:

<body class="foo bar">

But here's my body class:

<body class="foo,bar">

Of course, I understand that it works if all classes are placed as a single space-delimited set of strings from the beginning, instead of in an array.

But there are many advantages to being able to pass arrays, so hopefully this problem will be fixed.

  • vue-meta: 3.0.0-alpha.10
  • vue: 3.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant