Skip to content

Styling behavior changes with orientation in NavigationMenu #5388

@schamallo

Description

@schamallo

Environment

  • Operating System: Windows_NT
  • Node Version: v20.19.5
  • Nuxt Version: 4.2.0
  • CLI Version: 3.29.3
  • Nitro Version: 2.12.9
  • Package Manager: npm@11.6.2
  • Builder: -
  • User Config: devtools, modules, ssr, runtimeConfig, app, components, imports, vite, compatibilityDate, hooks, css, ui
  • Runtime Modules: @nuxt/ui@4.1.0
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.1.0

Reproduction

https://codesandbox.io/p/devbox/muddy-wave-9mmmts

Description

Hello

When styling children with the ui attribute of NavigationMenuItem, the styling is applied with vertical orientation but not horizontal.
It seems that the parent childLink style is applied in horizontal mode and the child link style is applied in vertical mode.

I need to style each child differently, so I need to be able to access each element's individually and cannot just set the parent style.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions