Skip to content

Side Navigation: API/CSS Selector to change text wrap property of navigation link #6715

@bking-encodia

Description

@bking-encodia

Describe your motivation

Using Vaadin 24.2.1. If the width of the navigation link text exceeds the width of the navigation component I would like the link text to wrap. Using the current CSS selectors available I tried:

vaadin-side-nav-item::part(link) {
    white-space: break-spaces;
}

But this has no effect as the white-space property is applied to an internal slot element that apparently has no selectors

Describe the solution you'd like

A CSS new selector and/or API for the Side Navigation component that allows you modify white-space property for navigation link

Describe alternatives you've considered

Tried different selectors with no success

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions