Context
Continuing with the exploration started by @ciampo in #41466, this issue will track the migration of CustomSelectControl to Ariakit.
Legacy: #55234
New version: #55790
Initial steps
V2 Legacy Wrapper
Completed in #57902
V2
To discuss
To implement
To check before releasing
Context
Continuing with the exploration started by @ciampo in #41466, this issue will track the migration of
CustomSelectControlto Ariakit.Legacy: #55234
New version: #55790
Initial steps
CustomSelect: AddWordPressComponentsProps#56998children(and a CustomSelectControlV2.Item component) to allow its consumers to specify select optionsvalue/onChange/defaultValue/label/sizeprops)V2 Legacy Wrapper
Completed in #57902
CustomSelectControl: add additional unit tests #56575onChangecallback and DOM elementsCustomSelectControlV2: fix handling of extra attributes passed tooptionsin the legacy adapter #62255valueis passed? (can be reproduced by following the testing instructions inCustomSelectControlV2: fix handling of extra attributes passed tooptionsin the legacy adapter #62255 re.FontAppearanceControlin global styles) — fix in CustomSelectControl V2: fix setting initial value and reacting to external controlled updates #62733onChangedoesn't fire on first render on v1 while it does on legacy v2 (WIP PRCustomSelectControlV2: Fix initial value not being set in the select for the V1 legacy adapter #62308, comment) — fix in CustomSelectControl V2: fix setting initial value and reacting to external controlled updates #62733CustomSelectControlV2: Fix styling issues #62424)CustomSelectControl#63139V2
To discuss
DropdownMenuV2? (see CustomSelectControlV2: Add root element wrapper #62803 (comment)))DropdownMenuV2tooisMultipleprop? (especially when neithervaluenordefaultValueare specified, but also for TS ergonomics)height(including the maximum and minimum heights) (see Improve CustomSelectControl's usability around max height #49110)Select-related components recently added to AriakitDropdownMenuItem?SelectItemCheckTo implement
CustomSelectControlandCustomSelectControl.ItemCustomSelectControlV2: Rename for consistency #60178InputBasefor styling #60261Selectcomponents (see changelog)InputControlPrefixWrapperdisabledTo check before releasing