-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77300b5
commit f643f0c
Showing
22 changed files
with
456 additions
and
647 deletions.
There are no files selected for viewing
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
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
47 changes: 47 additions & 0 deletions
47
src/patternfly/components/Label/templates/label-template-variants.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,47 @@ | ||
{{> label | ||
label--id=(concat label-template-variants--id '-default') | ||
label-text--value=label-template-variants--title}} | ||
|
||
{{> label | ||
label--id=(concat label-template-variants--id '-icon') | ||
label-icon--value="info-circle" | ||
label-text--value=(concat label-template-variants--title ' icon')}} | ||
|
||
{{> label | ||
label--isRemovable=true | ||
label--id=(concat label-template-variants--id '-removable') | ||
label-text--value=(concat label-template-variants--title ' removable')}} | ||
|
||
{{> label | ||
label--isRemovable=true | ||
label--id=(concat label-template-variants--id '-icon-removable') | ||
label-text--value=(concat label-template-variants--title ' icon removable') | ||
label-icon--value="info-circle"}} | ||
|
||
{{> label | ||
label--id=(concat label-template-variants--id '-link') | ||
label-text--value=(concat label-template-variants--title ' link') | ||
label-content--IsLink=true}} | ||
|
||
{{> label | ||
label--isRemovable=true | ||
label--id=(concat label-template-variants--id '-link-removable') | ||
label-text--value=(concat label-template-variants--title ' link removable') | ||
label-content--IsLink=true}} | ||
|
||
{{> label | ||
label--id=(concat label-template-variants--id '-truncated') | ||
label-text--value=(concat label-template-variants--title ' label, max-width truncation customization') | ||
label-text--attribute='style="--pf-c-label__text--MaxWidth: 28ch"' | ||
label-icon--value="info-circle"}} | ||
|
||
{{> label | ||
label--isRemovable=true | ||
label--id=(concat label-template-variants--id '-truncated-with-icon') | ||
label-text--value=(concat label-template-variants--title ' label with icon and set max-width truncation customization') | ||
label-text--attribute='style="--pf-c-label__text--MaxWidth: 38ch"' | ||
label-icon--value="info-circle"}} | ||
|
||
{{#if @partial-block}} | ||
{{> @partial-block}} | ||
{{/if}} |
Oops, something went wrong.