-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
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:
- Easy to customise theme (compared to adding custom styles to
vaadin-list-box
), - 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.
jouni and lkraav