Skip to content

Create vaadin-list-divider component #491

@web-padawan

Description

@web-padawan

The current hr selector is problematic because there could be global styles on the page that modify it, and ::slotted() styles lose in specificity. This is what happens with Java examples - see "Separators" demo.

With vaadin-list-divider as an individual element we would have the following benefits:

  1. Easy to customise theme (compared to adding custom styles to vaadin-list-box),
  2. No need to set role="separator" (component can set the role on itself).

This seems a better alternative than using a CSS class name, which was proposed by vaadin/vaadin-list-box#71.

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