-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into VIV-2049-layout
- Loading branch information
Showing
33 changed files
with
972 additions
and
302 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
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
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,3 @@ | ||
## Implementation | ||
|
||
If a `label` can not be used, always provide an `aria-label` as an alternative. This will allow screen reader users to know the purpose of the Radio Group and the Radio button. |
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,58 @@ | ||
## Usage | ||
|
||
<docs-do-dont> | ||
<docs-do slot="description" headline="Use Checkboxes to select multiple options"> | ||
|
||
```html preview example | ||
<div class="options"> | ||
<h5>Email Preferences</h5> | ||
<vwc-checkbox label="Billing issues"></vwc-checkbox> | ||
<vwc-checkbox label="Product updates"></vwc-checkbox> | ||
<vwc-checkbox label="Price changes"></vwc-checkbox> | ||
</div> | ||
|
||
<style> | ||
.options { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
} | ||
</style> | ||
``` | ||
|
||
</docs-do> | ||
<docs-do headline="Use checkboxes for a single item"> | ||
|
||
```html preview example | ||
<vwc-checkbox label="I agree to the terms and conditions"></vwc-checkbox> | ||
``` | ||
|
||
</docs-do> | ||
</docs-do-dont> | ||
|
||
## Labelling | ||
|
||
### Label | ||
|
||
<docs-do-dont> | ||
<docs-do slot="description" headline="Use the label attribute whenever possible"> | ||
|
||
```html preview example | ||
<vwc-checkbox label="Use signed Webhooks"></vwc-checkbox> | ||
``` | ||
|
||
</docs-do> | ||
<docs-do dont headline="Avoid Checkboxes without visible label"> | ||
|
||
```html preview example | ||
<vwc-checkbox aria-label="Use signed Webhooks"></vwc-checkbox> | ||
``` | ||
|
||
</docs-do> | ||
</docs-do-dont> | ||
|
||
## Related Components | ||
|
||
- [Switch](/components/switch/) | ||
- [Searchable Select](/components/searchable-select/) | ||
- [Radio](/components/radio/) |
Oops, something went wrong.