-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(checkbox): disabled state on nested controls
- Loading branch information
1 parent
0328c9f
commit c2cd390
Showing
4 changed files
with
68 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
# Checkbox | ||
Add a description of the component here. | ||
|
||
## Usage | ||
Describe how best to use this web component along with best practices. | ||
A **checkbox** is used to select a single item or multiple items, typically to choose elements to perform an action or to reflect a binary setting. | ||
|
||
```html | ||
<pf-checkbox> | ||
|
||
</pf-checkbox> | ||
<pf-checkbox label="Checkbox"></pf-checkbox> | ||
``` |
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,13 @@ | ||
<pf-checkbox label="Parent"> | ||
<pf-checkbox label="Child 1"></pf-checkbox> | ||
<pf-checkbox label="Child 2"></pf-checkbox> | ||
<pf-text-input label="Text"></pf-text-input> | ||
</pf-checkbox> | ||
<pf-checkbox label="Sibling"></pf-checkbox> | ||
|
||
<script type="module"> | ||
import '@patternfly/elements/pf-checkbox/pf-checkbox.js'; | ||
import '@patternfly/elements/pf-text-input/pf-text-input.js'; | ||
</script> | ||
|
||
|
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