Time Picker
- Usage
- Styling
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…}
selector.
See Lumo Style Properties for more information on style properties.
Note
|
Input Field Components Shared Styles
Style properties whose names start with --vaadin-input-field are shared among all input field components. To apply them only to a specific type of component, use an element selector like vaadin-text-field {…}
|
Field Surface
Feature | Property | Default Value |
---|---|---|
Background |
|
|
Background, invalid |
|
|
Background, hover highlight color |
|
|
Background, invalid hover highlight color |
|
|
Background, disabled |
|
|
Border width |
|
|
Border color |
|
|
Hover highlight opacity |
|
|
Height |
|
|
Value text color |
|
|
Value text color, disabled |
|
|
Value font size |
|
|
Value font weight |
|
|
Placeholder text color |
|
|
Border radius |
|
|
Read-only border |
|
|
Label
Feature | Property | Default Value |
---|---|---|
Color |
|
|
Focused color |
|
|
Hovered color |
|
|
Font size |
|
|
Font weight |
|
|
Helper
Feature | Property | Default Value |
---|---|---|
Font size |
|
|
Font weight |
|
|
Color |
|
|
Top margin |
|
|
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
- Root element
-
vaadin-time-picker
States
- Required
-
vaadin-time-picker
[required] - Focused
-
vaadin-time-picker
[focused] - Keyboard focused
-
vaadin-time-picker
[focus-ring] - Read-only
-
vaadin-time-picker
[readonly] - Disabled
-
vaadin-time-picker
[disabled] - Not empty
-
vaadin-time-picker
[has-value] - With open overlay
-
vaadin-time-picker
[opened] - Hovered
-
vaadin-time-picker
:hover
Field
- Field surface (background, border)
-
vaadin-time-picker
::part(input-field) - Native input element
-
vaadin-time-picker
> input - Input field with placeholder shown
-
vaadin-time-picker
> input:placeholder-shown - Toggle button
-
vaadin-time-picker
::part(toggle-button) - Toggle button icon
-
vaadin-time-picker
::part(toggle-button)::before - Clear button
-
vaadin-time-picker
::part(clear-button) - Clear button icon
-
vaadin-time-picker
::part(clear-button)::before - Prefix element
-
vaadin-time-picker
> [slot="prefix"]
Label
- Field with label
-
vaadin-time-picker
[has-label] - Label
-
vaadin-time-picker
::part(label) - Label text
-
vaadin-time-picker
> label - Required indicator
-
vaadin-time-picker
::part(required-indicator)
Helper and Validation Error
- Field with helper
-
vaadin-time-picker
[has-helper] - Helper
-
vaadin-time-picker
::part(helper-text) - Helper text
-
vaadin-time-picker
> [slot="helper"] - Invalid field
-
vaadin-time-picker
[invalid] - Error message
-
vaadin-time-picker
::part(error-message) - Error message text
-
vaadin-time-picker
> [slot="error-message"]
Overlay
- Overlay element
-
vaadin-time-picker-overlay
- Overlay background
-
vaadin-time-picker-overlay
::part(overlay) - Overlay content wrapper
-
vaadin-time-picker-overlay
::part(content) - Overlay in loading state
-
vaadin-time-picker-overlay
[loading] - Overlay loading indicator
-
vaadin-time-picker-overlay
::part(loader)
Items
- Item element
-
vaadin-time-picker-item
- Selected item
-
vaadin-time-picker-item
[selected] - Item selection indicator
-
vaadin-time-picker-item
::part(checkmark) - Item selection indicator icon
-
vaadin-time-picker-item
::part(checkmark)::before - Focused item
-
vaadin-time-picker-item
[focused] - Item content wrapper
-
vaadin-time-picker-item
::part(content) - Hovered item
-
vaadin-time-picker-item
:hover