This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-form-select] Combobox A11Y Audit Issues (#3976)
Co-authored-by: Pravinkumar K S <[email protected]> Co-authored-by: PK106552 <[email protected]>
- Loading branch information
1 parent
bb1c3b7
commit 43ed926
Showing
7 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 13 additions & 7 deletions
20
packages/terra-core-docs/src/terra-dev-site/doc/form-select/example/combobox/Combobox.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import React from 'react'; | ||
import Combobox from 'terra-form-select/lib/Combobox'; | ||
import Field from 'terra-form-field'; | ||
import classNames from 'classnames/bind'; | ||
import styles from '../FormSelectDocCommon.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const ComboboxExample = () => ( | ||
<Combobox placeholder="Select a color" className={cx('form-select')}> | ||
<Combobox.Option value="blue" display="Blue" /> | ||
<Combobox.Option value="green" display="Green" /> | ||
<Combobox.Option value="purple" display="Purple" /> | ||
<Combobox.Option value="red" display="Red" /> | ||
<Combobox.Option value="violet" display="Violet" /> | ||
</Combobox> | ||
<Field | ||
label="Colors" | ||
htmlFor="color-field-1" | ||
> | ||
<Combobox placeholder="Select a color" ariaLabel="Colors" className={cx('form-select')} inputId="color-field-1"> | ||
<Combobox.Option value="blue" display="Blue" /> | ||
<Combobox.Option value="green" display="Green" /> | ||
<Combobox.Option value="purple" display="Purple" /> | ||
<Combobox.Option value="red" display="Red" /> | ||
<Combobox.Option value="violet" display="Violet" /> | ||
</Combobox> | ||
</Field> | ||
); | ||
|
||
export default ComboboxExample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters