Skip to content

refactor!: Base combo box styles #8932

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 7 commits into
base: base-styles
Choose a base branch
from
Open

Conversation

anezthes
Copy link
Contributor

@anezthes anezthes commented Apr 11, 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 Combo Box base style

localhost_8000_dev_combo-box html

localhost_8000_dev_combo-box html (1)

Screenshot 2025-04-15 at 10 17 30

Supported custom properties

Property Description
--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.

@web-padawan web-padawan changed the base branch from main to base-styles April 11, 2025 13:03
@anezthes anezthes requested a review from jouni April 14, 2025 09:24
@anezthes anezthes changed the title Base combo box refactor!: Base combo box Apr 14, 2025
padding: var(--vaadin-item-padding, var(--_vaadin-padding-container));
}

:host([focus-ring]) {
Copy link
Member

Choose a reason for hiding this comment

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

This won't apply to combo-box items since we use focused attribute there, not focus-ring.
Maybe this could be aligned to make reusing styles easier. @jouni WDYT?

}

:host([hidden]) {
display: none;
Copy link
Member

Choose a reason for hiding this comment

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

Let's use !important for consistency with other components:

Suggested change
display: none;
display: none !important;

Copy link

@anezthes anezthes changed the title refactor!: Base combo box refactor!: Base combo box styles Apr 15, 2025
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