Skip to content

[aura] Documented component CSS properties that do not work #11163

@sissbruecker

Description

@sissbruecker

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-weight works instead, but naming is inconsistent with other label props)

Context menu:

  • --vaadin-icon-visual-size
    • Should 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-top is set to 0, 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 target vaadin-dashboard-widget selector instead of html, 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 of vaadin-dashboard-widget, target vaadin-dashboard-widget:not([dragging]) in Aura dashboard.css)

Dialog / Confirm dialog:

  • --vaadin-dialog-shadow

Grid:

  • --vaadin-grid-column-border-width (with column-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 using min-width explicitly for them seems wrong.

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-weight works 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions