Skip to content

Commit 0e49416

Browse files
authored
feat: add attrs to combobox
Added ability to add data- + aria- attrs to combobox and swaps groupHeading color to text-secondary
1 parent f52c41f commit 0e49416

File tree

22 files changed

+1202
-869
lines changed

22 files changed

+1202
-869
lines changed

packages/gamut/src/Form/SelectDropdown/SelectDropdown.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { parseOptions, SelectOptionBase } from '../utils';
1515
import {
1616
AbbreviatedSingleValue,
1717
CustomContainer,
18+
CustomInput,
19+
CustomValueContainer,
1820
DropdownButton,
1921
formatGroupLabel,
2022
formatOptionLabel,
@@ -47,10 +49,12 @@ const defaultProps = {
4749
IndicatorSeparator: () => null,
4850
ClearIndicator: RemoveAllButton,
4951
SelectContainer: CustomContainer,
52+
ValueContainer: CustomValueContainer,
5053
MultiValue: MultiValueWithColorMode,
5154
MultiValueRemove: MultiValueRemoveButton,
5255
Option: IconOption,
5356
SingleValue: AbbreviatedSingleValue,
57+
Input: CustomInput,
5458
},
5559
};
5660
const onChangeAction = 'select-option';
@@ -88,6 +92,7 @@ const onChangeAction = 'select-option';
8892
* // Grouped options with extended features
8993
* <SelectDropdown
9094
* name="category"
95+
* placeholder="Default placeholder text"
9196
* options={[
9297
* {
9398
* label: 'Frontend',

0 commit comments

Comments
 (0)