Skip to content

Commit e2bfdec

Browse files
authored
feat(combobox): Replace input in select/read-only Comboboxes (#4696)
* make DeprecatedComboboxInput and build tests * update and fix multi-entity combobox tests to use examples * refactor DeprecatedComboboxInputElement * put input styles into mixins * faux input wip * build out ComboboxFauxInput * add activedescendent to select-only * rename onFocus prop and new class to slds-input-faux * add estimated min-width to faux input * use button instead of div for non-input element * update styles and attributes for button as artificial input * refactor RTE combobox size class * fix faux input touch and color styles * rename 'faux' to 'mock' * update release notes and docs * convert object switcher to mock * fix handler error * annotation revs * fix styles for IE * going back to 'faux' * rename component to ComboboxInputFaux and add truncation * rename 'readonly' prop to 'selectOnly' * add 'selectOnly' props to base Combobox * relabel Base stories with 'select-only' * update release notes * remove tabindex * update release notes * update snaps * update aria-labelledby * remove combobox role from select-only * update docs
1 parent 0001aba commit e2bfdec

File tree

26 files changed

+955
-399
lines changed

26 files changed

+955
-399
lines changed

RELEASENOTES.general.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33

44
## 2.16.0 - Upcoming
55

6+
- In accordance with ARIA 1.2 guidance, the `input` was replaced with `button` within these components that contain select-only comboboxes:
7+
- Datetime Picker
8+
- Docked Composer
9+
- Dynamic Menu
10+
- Expression
11+
- Global Header
12+
- List builder
13+
- Lookups
14+
- Picklist
15+
- Rich Text Editor
16+
- Timepicker
17+
618
- Added SLDS scope customizer tool: `npm run slds:customizer`
719

820
## 2.15.8 - May 27, 2021

RELEASENOTES.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,30 @@
33

44
## Release 2.16.0 - Upcoming
55

6+
- In accordance with ARIA 1.2 guidance, the `input` was replaced with `button` within these components that contain select-only comboboxes:
7+
- Datetime Picker
8+
- Docked Composer
9+
- Dynamic Menu
10+
- Expression
11+
- Global Header
12+
- List builder
13+
- Lookups
14+
- Picklist
15+
- Rich Text Editor
16+
- Timepicker
17+
- Added SLDS scope customizer tool: `npm run slds:customizer`
18+
619
## Components
720
### [Accordion](https://www.lightningdesignsystem.com/components/accordion)
821
## Added
922
- Added link to accessibility keyboard interaction guidelines.
1023

1124
### [Combobox](https://www.lightningdesignsystem.com/components/combobox)
1225
#### Changed
13-
- Updated to ARIA 1.2 compliance where these attributes are moved to the text input: `role="combobox"`, `aria-expanded`, `aria-haspopup="listbox"`.
26+
- Changed `slds-combobox__input` element from `input` to `button` per ARIA 1.2 guidance for select-only comboboxes.
27+
- Updated to ARIA 1.2 compliance where these attributes are moved to the input, or button in the case of select-only: `role="combobox"`, `aria-expanded`, `aria-haspopup="listbox"`.
28+
- Changed `@restrict` annotation of `.slds-combobox__input` from `.slds-combobox input` to `.slds-combobox__form-element input, .slds-combobox__form-element button`
29+
- Changed `@restrict` annotation of `.slds-combobox__input-value` from `.slds-combobox input` to `.slds-combobox__input`
1430

1531
### [Datepickers](https://www.lightningdesignsystem.com/components/datepickers)
1632
#### Added
@@ -32,6 +48,14 @@
3248
#### Changed
3349
- Removed the usage of the deprecated combobox. The Dynamic Menu now uses the current combobox.
3450

51+
### [Form Element](https://www.lightningdesignsystem.com/components/form-element)
52+
#### Fixed
53+
- Correctly position help text under the corresponding input when in horizontal layout.
54+
55+
### [Input](https://www.lightningdesignsystem.com/components/input)
56+
#### Added
57+
- Created new class `slds-input_faux` to style read-only "inputs" where necessary for accessibility best practices, like combobox.
58+
3559
### [List Builder](https://www.lightningdesignsystem.com/components/list-builder)
3660
#### Changed
3761
- Removed the usage of the deprecated combobox. The List Builder now uses the current combobox.
@@ -43,7 +67,7 @@
4367

4468
### [Picklist](https://www.lightningdesignsystem.com/components/picklist)
4569
#### Changed
46-
Removed the usage of the deprecated combobox. The Picklist now uses the current combobox.
70+
- Removed the usage of the deprecated combobox. The Picklist now uses the current combobox.
4771

4872
### [Progress Bar](https://www.lightningdesignsystem.com/components/progress-bar)
4973
#### Added

ui/components/combobox/RELEASENOTES.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88

99
### Changed
1010

11-
- Updated to ARIA 1.2 compliance where these attributes are moved to the text input: `role="combobox"`, `aria-expanded`, `aria-haspopup="listbox"`.
11+
- Changed `slds-combobox__input` element from `input` to `button` per ARIA 1.2 guidance for select-only comboboxes.
12+
13+
- Updated to ARIA 1.2 compliance where these attributes are moved to the input, or button in the case of select-only: `role="combobox"`, `aria-expanded`, `aria-haspopup="listbox"`.
14+
15+
- Changed `@restrict` annotation of `.slds-combobox__input` from `.slds-combobox input` to `.slds-combobox__form-element input, .slds-combobox__form-element button`
16+
17+
- Changed `@restrict` annotation of `.slds-combobox__input-value` from `.slds-combobox input` to `.slds-combobox__input`
18+
1219

1320
## 2.13.1
1421

0 commit comments

Comments
 (0)