Skip to content

refactor!: Base select styles #8944

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

Open
wants to merge 4 commits into
base: base-styles
Choose a base branch
from
Open

refactor!: Base select styles #8944

wants to merge 4 commits into from

Conversation

anezthes
Copy link
Contributor

@anezthes anezthes commented Apr 14, 2025

New and changed base style properties

Property Description
--_vaadin-icon-checkmark Data URL for an SVG icon of a checkmark. Used to indicate the selected item.
--_vaadin-icon-chevron-down Data URL for an SVG icon of a downward-pointing chevron. Used for combo box and select dropdown indicators.

New Select base style

localhost_8000_dev_select html

localhost_8000_dev_select html (2)

Supported custom properties

Property Description
--vaadin-divider-color Divider color (e.g., <hr>).
--vaadin-item-border-radius Item border radius.
--vaadin-item-gap Space between the checkmark and content.
--vaadin-item-height Item height.
--vaadin-item-overlay-padding Item container padding.
--vaadin-item-padding Item padding.

@anezthes anezthes requested a review from jouni April 15, 2025 06:59
Copy link

:host {
position: relative;
::slotted([slot='value']) {
flex: 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC setting flex-grow should be enough, no need to change this.

text-overflow: ellipsis;
width: 100%;
line-height: inherit;
display: contents;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could simply update vaadin-select-value-button template to remove corresponding parts altogether since we are making a breaking change in V25 anyway in terms of styling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants