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

Default styles for VirtualList items #8298

Open
rolfsmeds opened this issue Dec 9, 2024 · 0 comments
Open

Default styles for VirtualList items #8298

rolfsmeds opened this issue Dec 9, 2024 · 0 comments
Labels

Comments

@rolfsmeds
Copy link
Contributor

Describe your motivation

As a followup to vaadin/platform#6838, it would be good to have some opt-in default visualizations for the focused and selected state of VirtualList items. Perhaps these could even be combined with some kind of default styles for the item wrappers?

Describe the solution you'd like

Some general item wrapper styles that come to mind:

Raised card with rounded borders and shadow

image

  • Focus indicated with ring
  • Selection indicated with background color or emphasized outline

Flat, with separators between items (somewhat like Grid rows)

image - Focus indicated with ring (0 radius) - Selection indicated with background color

ListBox style

image - Focus indicated with ring for keyboard, hover style for pointer - Selection indicated with checkmark

Presumably these would be implemented as theme variants on the VirtualList component.

Describe alternatives you've considered

No response

Additional context

No response

@rolfsmeds rolfsmeds added vaadin-virtual-list enhancement New feature or request labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant