-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-badge): add different design types (#7564)
* feat(ui5-badge): add different design types
- Loading branch information
1 parent
782350e
commit e5895f7
Showing
16 changed files
with
1,578 additions
and
121 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,9 +1,30 @@ | ||
<div class="ui5-badge-root"> | ||
<slot name="icon"></slot> | ||
{{#if interactive}} | ||
<button class="ui5-badge-root" | ||
title="{{_title}}" | ||
aria-roledescription="{{_roleDescription}}" | ||
aria-description="{{_valueState}}" | ||
@onclick={{_onclick}} | ||
> | ||
{{> content}} | ||
</button> | ||
{{else}} | ||
<div class="ui5-badge-root" | ||
title="{{_title}}"> | ||
{{> content}} | ||
</div> | ||
{{/if}} | ||
|
||
{{#*inline "content"}} | ||
<slot name="icon"></slot> | ||
{{#if this._semanticIconName}} | ||
<ui5-icon class="ui5-badge-semantic-icon" name="{{_semanticIconName}}"></ui5-icon> | ||
{{/if}} | ||
<span class="ui5-hidden-text">{{badgeDescription}}</span> | ||
{{#if hasText}} | ||
<label class="ui5-badge-text"><bdi><slot></slot></bdi></label> | ||
<span class="ui5-badge-text"><bdi><slot></slot></bdi></span> | ||
{{/if}} | ||
{{/inline}} | ||
|
||
|
||
|
||
|
||
<span class="ui5-hidden-text">{{badgeDescription}}</span> | ||
</div> |
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
Oops, something went wrong.