Global CSS API: Controls - Select

The following CSS custom properties are used for select control UI.

Native Select

Properties used for native select control UI.

PropertyDescriptionDefault
Select
--gf-ctrl-select-iconIcon.var(--gf-icon-ctrl-select)
--gf-ctrl-select-icon-hoverIcon on hover.var(--gf-ctrl-select-icon)
--gf-ctrl-select-icon-focusIcon on focus.var(--gf-ctrl-select-icon)
--gf-ctrl-select-icon-disabledIcon on disabled.var(--gf-ctrl-select-icon)
--gf-ctrl-select-icon-positionIcon position.calc(100% - var(--gf-ctrl-padding-x)) center
--gf-ctrl-select-icon-sizeIcon size.10px
--gf-ctrl-select-ms-expand-ms-expand handling.none
--gf-ctrl-select-padding-xHorizontal (left/right) padding.var(--gf-ctrl-padding-x) calc(var(--gf-ctrl-select-search-icon-size) + var(--gf-ctrl-padding-x))
Multi-Select
--gf-ctrl-multiselect-heightMulti-select height.130px
--gf-ctrl-multiselect-radiusMulti-select border radius.var(--gf-ctrl-radius-max-lg)
--gf-ctrl-multiselect-line-heightMulti-select line height.1.5
--gf-ctrl-multiselect-padding-yMulti-select vertical (top/bottom) padding.var(--gf-padding-y)

Enhanced UI Select

Properties used for enhanced select control UI.

PropertyDescriptionDefault
Enhanced Select
--gf-ctrl-select-dropdown-border-colorDropdown border color.transparent
--gf-ctrl-select-dropdown-radiusDropdown border radius.var(--gf-ctrl-radius-max-md)
--gf-ctrl-select-dropdown-shadowDropdown box shadow.0 0 1px rgba(18, 25, 97, 0.24), 0 24px 24px rgba(18, 25, 97, 0.03), 0 2px 2px rgba(18, 25, 97, 0.03), 0 4px 4px rgba(18, 25, 97, 0.03), 0 8px 8px rgba(18, 25, 97, 0.03), 0 16px 16px rgba(18, 25, 97, 0.03)
--gf-ctrl-select-dropdown-option-bg-color-hoverDropdown option background color on hover.var(--gf-color-in-ctrl-light-lighter)
--gf-ctrl-select-dropdown-option-shadow-hoverDropdown option box shadow on hover.
--gf-ctrl-select-search-icon-sizeSearch icon size.var(--gf-icon-font-size)
--gf-ctrl-select-search-icon-positionSearch icon position.var(--gf-ctrl-padding-x) center
--gf-ctrl-select-search-padding-xSearch input horizontal (left/right) padding.calc(var(--gf-ctrl-select-search-icon-size) + var(--gf-ctrl-padding-x) + 8px) var(--gf-ctrl-padding-x)
Enhanced Multi-Select
--gf-ctrl-multiselect-close-icon-sizeRemove selected option icon size.var(--gf-icon-font-size)
--gf-ctrl-multiselect-close-icon-inset-y-startRemove selected option icon vertical start (top) position.calc(50% - (var(--gf-ctrl-multiselect-close-icon-size) / 2))
--gf-ctrl-multiselect-close-icon-inset-x-endRemove selected option icon horizontal end (right) position.calc((var(--gf-ctrl-padding-x) / 2) + 2px)
--gf-ctrl-multiselect-selected-item-bg-colorSelected option background color.var(--gf-color-in-ctrl-primary)
--gf-ctrl-multiselect-selected-item-radiusSelected option border radius.33px
--gf-ctrl-multiselect-selected-item-colorSelected option color.var(--gf-color-in-ctrl-primary-contrast)
--gf-ctrl-multiselect-selected-item-font-sizeSelected option font size.var(--gf-ctrl-font-size)
--gf-ctrl-multiselect-selected-item-font-weightSelected option font weight.var(--gform-theme-font-weight-semibold)
--gf-ctrl-multiselect-selected-item-remove-icon-colorRemove selected option icon color.var(--gf-color-in-ctrl-primary-contrast)