-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expandable): add type to the button (#1982)
* fix(expandable): add type to the button * fix(button): add type * fix(button): update types in components * fix(expandable): update docs
- Loading branch information
1 parent
f544675
commit b0732f6
Showing
15 changed files
with
64 additions
and
40 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
29 changes: 8 additions & 21 deletions
29
src/patternfly/components/Button/examples/button-types-example.hbs
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,24 +1,11 @@ | ||
{{#> button button--modifier="pf-m-primary"}} | ||
Primary | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-secondary"}} | ||
Secondary | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-tertiary"}} | ||
Tertiary | ||
{{#> button button--modifier="pf-m-primary" button--IsSubmit="true"}} | ||
Submit Button | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-danger"}} | ||
Danger | ||
|
||
{{#> button button--modifier="pf-m-primary" button--IsReset="true"}} | ||
Reset Button | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-link"}} | ||
{{#> button-icon}} | ||
<i class="fas fa-plus-circle" aria-hidden="true"></i> | ||
{{/button-icon}} | ||
Link button | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-plain" button--attribute='aria-label="Remove"'}} | ||
<i class="fas fa-times" aria-hidden="true"></i> | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-inline pf-m-link"}} | ||
Inline link button | ||
|
||
{{#> button button--modifier="pf-m-primary"}} | ||
Default Button | ||
{{/button}} |
24 changes: 24 additions & 0 deletions
24
src/patternfly/components/Button/examples/button-variations-example.hbs
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,24 @@ | ||
{{#> button button--modifier="pf-m-primary"}} | ||
Primary | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-secondary"}} | ||
Secondary | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-tertiary"}} | ||
Tertiary | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-danger"}} | ||
Danger | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-link"}} | ||
{{#> button-icon}} | ||
<i class="fas fa-plus-circle" aria-hidden="true"></i> | ||
{{/button-icon}} | ||
Link button | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-plain" button--attribute='aria-label="Remove"'}} | ||
<i class="fas fa-times" aria-hidden="true"></i> | ||
{{/button}} | ||
{{#> button button--modifier="pf-m-inline pf-m-link"}} | ||
Inline link button | ||
{{/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
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
6 changes: 3 additions & 3 deletions
6
src/patternfly/components/Form/examples/form-action-group-example.hbs
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