-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(select): Adjust accessibility for select / Abstract Helper to it…
…s own component (Feedback) / Add docs select component
- Loading branch information
1 parent
a81e985
commit 7b5b1c5
Showing
15 changed files
with
69 additions
and
55 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.base { | ||
composes: rounded from '../Borders.modules.scss'; | ||
} | ||
|
||
.default { | ||
composes: base; | ||
composes: default from '../Messaging.modules.scss'; | ||
} | ||
|
||
.success { | ||
composes: base; | ||
composes: success from '../Messaging.modules.scss'; | ||
} | ||
|
||
.error { | ||
composes: base; | ||
composes: error from '../Messaging.modules.scss'; | ||
} |
2 changes: 1 addition & 1 deletion
2
...ormField/Helper/__tests__/Helper.spec.jsx → ...ents/Feedback/__tests__/Feedback.spec.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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
|
||
### Usage criteria | ||
|
||
* Selects should be used sparingly where possible or need to reduce space on forms etc. (Work with design for specifics) | ||
* Selects should have instructions such as "Please select…" as a default option but not able to be selected. | ||
* Selects are most appropriate when there are 4 or more choice. Less than 4, checkboxes or radios are more appropriate. | ||
|
||
``` | ||
const info = ( | ||
<Text> | ||
We have special promotions in <Text bold>British Columbia, Ontario and Quebec</Text>. | ||
</Text> | ||
); | ||
<Select | ||
label="Select your province" | ||
options={[{text: 'British Columbia', value: 'BC'}, {text: 'Ontario', value: 'ON'}]} | ||
helper={info} | ||
options={[{text: 'British Columbia', value: 'BC'}, {text: 'Ontario', value: 'ON'}, {text: 'Quebec', value: 'QC'}]} | ||
onChange={e => console.log(e.target.value)} | ||
/> | ||
``` |
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