-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
The following is a list of component custom CSS properties that are currently documented as supported by Aura, but either do not work, or may not work 100% as intended. For testing the props have been applied to the host element directly.
Checkbox:
-
--vaadin-checkbox-marker-color -
--vaadin-checkbox-label-font-weight(incorrectly documented,--vaadin-checkbox-font-weightworks instead, but naming is inconsistent with other label props)
Context menu:
-
--vaadin-icon-visual-sizeShould modify checkmark icon in items? Same result when applied to items. Probably applies to other item components?
CRUD: (not Aura-related, but base-styles)
-
--vaadin-crud-form-padding(padding-topis set to0, probably intentional?)- Similar to dashboard-widget and dialog, the top padding is expected to come from the header)
Dashboard
-
--vaadin-dashboard-widget-padding(only defined in Lumo – should be in base styles. Doesn't affect padding-top) -
--vaadin-dashboard-widget-header-padding(when editable) -
--vaadin-dashboard-widget-shadow(need to targetvaadin-dashboard-widgetselector instead ofhtml, this property is overridden in base style on the host on various states) -
--vaadin-dashboard-drop-target-border(only defined in Lumo – base styles define--vaadin-dashboard-drop-target-border-color) -
--vaadin-dashboard-drop-target-background-color(instead ofvaadin-dashboard-widget, targetvaadin-dashboard-widget:not([dragging])in Aura dashboard.css)
Dialog / Confirm dialog:
-
--vaadin-dialog-shadow
Grid:
-
--vaadin-grid-column-border-width(withcolumn-borders) -
--vaadin-grid-row-highlight-background-color(applied to all rows, no clue when this is useful)- Jouni: this is useful for custom row styles, if you want to highlight a certain row with a background color, using a custom part name
Login overlay:
-
--vaadin-login-overlay-background -
--vaadin-login-overlay-shadow -
--vaadin-login-overlay-brand-padding(not applied to bottom, probably intentional)
Master detail layout:
-
--vaadin-master-detail-layout-detail-background -
--vaadin-master-detail-layout-detail-shadow -
--vaadin-master-detail-layout-backdrop(only defined in Lumo, never used)
Message input: (not Aura-related, these are broken in base styles)
-
--vaadin-input-field-top-start-radius -
--vaadin-input-field-top-end-radius -
--vaadin-input-field-bottom-start-radius -
--vaadin-input-field-bottom-start-radius -
--vaadin-input-field-container-gap(doesn't make sense for this component?)
Multi-select combo box:
-
--vaadin-multi-select-combo-box-chip-min-width(doesn't work for either theme)- Jouni: the component expects this to be a pixel value (uses
parseInt()in JS). This seems to be broken in base styles. And I’m not even sure what the purpose of this property is and how it should behave – I assume it should guarantee that chips don't get smaller than this, but I would also not expect the chips to ever grow bigger than the content needs, so usingmin-widthexplicitly for them seems wrong.
- Jouni: the component expects this to be a pixel value (uses
Notification (card):
-
--vaadin-notification-shadow
Popover:
-
--vaadin-popover-shadow -
--vaadin-popover-background
Radio button:
-
--vaadin-radio-button-marker-color -
--vaadin-radio-button-label-font-weight(--vaadin-radio-button-font-weightworks instead, but naming is inconsistent with other label props)
Rich text editor:
-
--vaadin-rich-text-editor-toolbar-button-text-color
Tooltip:
-
--vaadin-tooltip-background
Upload:
-
--vaadin-upload-gap(need to usevar(--vaadin-upload-gap)instead of0in)margin-top: 0; -
--vaadin-upload-file-border-radius -
--vaadin-upload-file-padding(only applies to start and end)
Reactions are currently unavailable