-
Notifications
You must be signed in to change notification settings - Fork 138
feat(badge): add badge component IX-3943 #2645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alexkaduk
wants to merge
13
commits into
main
Choose a base branch
from
feature/IX-3943-badge
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e8d4d0f
feat(badge): add badge component IX-3943
alexkaduk bbd0b22
feat(badge): address coderabbitai bot
alexkaduk 916336f
feat(badge): migrate badge stories from Lit to Stencil TSX IX-3943
alexkaduk 67d6787
feat(badge): address review comments IX-3943
alexkaduk 22b0709
feat(badge): address review comments IX-3943
alexkaduk 47dc5c8
feat(badge): address review comments IX-3943
alexkaduk 640a799
feat(badge): address review comments IX-3943
alexkaduk 5992064
feat(badge): address review comments IX-3943
alexkaduk f0c2709
feat(badge): address review comments IX-3943
alexkaduk 6378d26
fix(badge): keep attached host as shrink-wrap IX-3943
alexkaduk d4e3c35
fix(badge): fix review comment IX-3943
alexkaduk cbf686c
Merge branch 'main' into feature/IX-3943-badge
alexkaduk b6706dd
fix(badge): use outline for border IX-3943
alexkaduk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 @@ | ||
| --- | ||
| '@siemens/ix': minor | ||
| '@siemens/ix-angular': minor | ||
| '@siemens/ix-react': minor | ||
| '@siemens/ix-vue': minor | ||
| --- | ||
|
|
||
| Introduces `ix-badge` for overlay count and status indicators on anchors or as standalone badges, with semantic variants, outline mode, position/offset, optional attention animation, and standalone `tooltipText` support. |
This file contains hidden or 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
19 changes: 19 additions & 0 deletions
19
packages/angular-standalone-test-app/src/preview-examples/badge-counter.css
This file contains hidden or 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,19 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| .container { | ||
| display: grid; | ||
| grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
| column-gap: 2rem; | ||
| row-gap: 1.5rem; | ||
| align-items: center; | ||
| /* Room for attached overlays and pulse rings above the content. */ | ||
| padding-top: 1rem; | ||
| } | ||
|
|
62 changes: 62 additions & 0 deletions
62
packages/angular-standalone-test-app/src/preview-examples/badge-counter.ts
This file contains hidden or 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,62 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| import { Component } from '@angular/core'; | ||
| import { IxBadge } from '@siemens/ix-angular/standalone'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-example', | ||
| imports: [IxBadge], | ||
| styleUrls: ['./badge-counter.css'], | ||
| template: ` | ||
| <div class="container"> | ||
| <ix-badge type="counter" label="8" variant="primary"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="primary" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="primary" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="primary" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="alarm"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="alarm" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="alarm" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="alarm" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="critical"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="critical" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="critical" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="critical" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="warning"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="warning" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="warning" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="warning" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="info"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="info" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="info" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="info" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="neutral"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="neutral" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="neutral" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="neutral" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="success"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="success" outline></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="success" enable-animation></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="success" outline enable-animation></ix-badge> | ||
|
|
||
| <ix-badge type="counter" label="8" variant="custom" background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="custom" outline background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="custom" enable-animation background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)"></ix-badge> | ||
| <ix-badge type="counter" label="8" variant="custom" outline enable-animation background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)"></ix-badge> | ||
|
|
||
| </div> | ||
| `, | ||
| }) | ||
| export default class BadgeCounter {} | ||
19 changes: 19 additions & 0 deletions
19
packages/angular-standalone-test-app/src/preview-examples/badge-dot.css
This file contains hidden or 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,19 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| .container { | ||
| display: grid; | ||
| grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
| column-gap: 2rem; | ||
| row-gap: 1.5rem; | ||
| align-items: center; | ||
| /* Room for attached overlays and pulse rings above the content. */ | ||
| padding-top: 1rem; | ||
| } | ||
|
|
62 changes: 62 additions & 0 deletions
62
packages/angular-standalone-test-app/src/preview-examples/badge-dot.ts
This file contains hidden or 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,62 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| import { Component } from '@angular/core'; | ||
| import { IxBadge } from '@siemens/ix-angular/standalone'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-example', | ||
| imports: [IxBadge], | ||
| styleUrls: ['./badge-dot.css'], | ||
| template: ` | ||
| <div class="container"> | ||
| <ix-badge type="dot" variant="primary" role="img" aria-label="Primary"></ix-badge> | ||
| <ix-badge type="dot" variant="primary" outline role="img" aria-label="Primary outline"></ix-badge> | ||
| <ix-badge type="dot" variant="primary" enable-animation role="img" aria-label="Primary pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="primary" outline enable-animation role="img" aria-label="Primary pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="alarm" role="img" aria-label="Alarm"></ix-badge> | ||
| <ix-badge type="dot" variant="alarm" outline role="img" aria-label="Alarm outline"></ix-badge> | ||
| <ix-badge type="dot" variant="alarm" enable-animation role="img" aria-label="Alarm pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="alarm" outline enable-animation role="img" aria-label="Alarm pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="critical" role="img" aria-label="Critical"></ix-badge> | ||
| <ix-badge type="dot" variant="critical" outline role="img" aria-label="Critical outline"></ix-badge> | ||
| <ix-badge type="dot" variant="critical" enable-animation role="img" aria-label="Critical pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="critical" outline enable-animation role="img" aria-label="Critical pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="warning" role="img" aria-label="Warning"></ix-badge> | ||
| <ix-badge type="dot" variant="warning" outline role="img" aria-label="Warning outline"></ix-badge> | ||
| <ix-badge type="dot" variant="warning" enable-animation role="img" aria-label="Warning pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="warning" outline enable-animation role="img" aria-label="Warning pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="info" role="img" aria-label="Info"></ix-badge> | ||
| <ix-badge type="dot" variant="info" outline role="img" aria-label="Info outline"></ix-badge> | ||
| <ix-badge type="dot" variant="info" enable-animation role="img" aria-label="Info pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="info" outline enable-animation role="img" aria-label="Info pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="neutral" role="img" aria-label="Neutral"></ix-badge> | ||
| <ix-badge type="dot" variant="neutral" outline role="img" aria-label="Neutral outline"></ix-badge> | ||
| <ix-badge type="dot" variant="neutral" enable-animation role="img" aria-label="Neutral pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="neutral" outline enable-animation role="img" aria-label="Neutral pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="success" role="img" aria-label="Success"></ix-badge> | ||
| <ix-badge type="dot" variant="success" outline role="img" aria-label="Success outline"></ix-badge> | ||
| <ix-badge type="dot" variant="success" enable-animation role="img" aria-label="Success pulse"></ix-badge> | ||
| <ix-badge type="dot" variant="success" outline enable-animation role="img" aria-label="Success pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="dot" variant="custom" role="img" aria-label="Custom" background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)"></ix-badge> | ||
| <ix-badge type="dot" variant="custom" outline role="img" aria-label="Custom outline" background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)"></ix-badge> | ||
| <ix-badge type="dot" variant="custom" enable-animation role="img" aria-label="Custom pulse" background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)"></ix-badge> | ||
| <ix-badge type="dot" variant="custom" outline enable-animation role="img" aria-label="Custom pulse outline" background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)"></ix-badge> | ||
|
|
||
| </div> | ||
| `, | ||
| }) | ||
| export default class BadgeDot {} |
18 changes: 18 additions & 0 deletions
18
packages/angular-standalone-test-app/src/preview-examples/badge-label.css
This file contains hidden or 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,18 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| .container { | ||
| display: grid; | ||
| grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
| column-gap: 2rem; | ||
| row-gap: 1.5rem; | ||
| align-items: center; | ||
| /* Room for attached overlays and pulse rings above the content. */ | ||
| padding-top: 1rem; | ||
| } |
58 changes: 58 additions & 0 deletions
58
packages/angular-standalone-test-app/src/preview-examples/badge-label.ts
This file contains hidden or 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 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| import { Component } from '@angular/core'; | ||
| import { addIcons } from '@siemens/ix-icons'; | ||
| import { iconInfo } from '@siemens/ix-icons/icons'; | ||
| import { IxBadge } from '@siemens/ix-angular/standalone'; | ||
|
|
||
| addIcons({ iconInfo }); | ||
|
|
||
| @Component({ | ||
| selector: 'app-example', | ||
| imports: [IxBadge], | ||
| styleUrls: ['./badge-label.css'], | ||
| template: ` | ||
| <div class="container"> | ||
| <ix-badge type="label" label="Primary" variant="primary" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Primary" variant="primary" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Primary" variant="primary" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Primary" variant="primary" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Alarm" variant="alarm" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Alarm" variant="alarm" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Alarm" variant="alarm" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Alarm" variant="alarm" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Critical" variant="critical" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Critical" variant="critical" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Critical" variant="critical" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Critical" variant="critical" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Warning" variant="warning" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Warning" variant="warning" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Warning" variant="warning" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Warning" variant="warning" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Info" variant="info" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Info" variant="info" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Info" variant="info" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Info" variant="info" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Neutral" variant="neutral" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Neutral" variant="neutral" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Neutral" variant="neutral" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Neutral" variant="neutral" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Success" variant="success" icon="info"></ix-badge> | ||
| <ix-badge type="label" label="Success" variant="success" icon="info" outline></ix-badge> | ||
| <ix-badge type="label" label="Success" variant="success" icon="info" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Success" variant="success" icon="info" outline enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Custom" variant="custom" icon="info" background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)"></ix-badge> | ||
| <ix-badge type="label" label="Custom" variant="custom" icon="info" background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)" outline></ix-badge> | ||
| <ix-badge type="label" label="Custom" variant="custom" icon="info" background="var(--theme-chart-11)" badge-color="var(--theme-color-inv-std-text)" enable-animation></ix-badge> | ||
| <ix-badge type="label" label="Custom" variant="custom" icon="info" background="var(--theme-chart-11)" badge-color="var(--theme-chip-outline--color)" outline enable-animation></ix-badge> | ||
| </div> | ||
| `, | ||
| }) | ||
| export default class BadgeLabel {} |
19 changes: 19 additions & 0 deletions
19
packages/angular-standalone-test-app/src/preview-examples/badge-status-icon.css
This file contains hidden or 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,19 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| .container { | ||
| display: grid; | ||
| grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
| column-gap: 2rem; | ||
| row-gap: 1.5rem; | ||
| align-items: center; | ||
| /* Room for attached overlays and pulse rings above the content. */ | ||
| padding-top: 1rem; | ||
| } | ||
|
|
52 changes: 52 additions & 0 deletions
52
packages/angular-standalone-test-app/src/preview-examples/badge-status-icon.ts
This file contains hidden or 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,52 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| import { Component } from '@angular/core'; | ||
| import { IxBadge } from '@siemens/ix-angular/standalone'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-example', | ||
| imports: [IxBadge], | ||
| styleUrls: ['./badge-status-icon.css'], | ||
| template: ` | ||
| <div class="container"> | ||
| <ix-badge type="status-icon" variant="alarm" role="img" aria-label="Alarm"></ix-badge> | ||
| <ix-badge type="status-icon" variant="alarm" outline role="img" aria-label="Alarm outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="alarm" enable-animation role="img" aria-label="Alarm pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="alarm" outline enable-animation role="img" aria-label="Alarm pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="status-icon" variant="error" role="img" aria-label="Error"></ix-badge> | ||
| <ix-badge type="status-icon" variant="error" outline role="img" aria-label="Error outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="error" enable-animation role="img" aria-label="Error pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="error" outline enable-animation role="img" aria-label="Error pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="status-icon" variant="critical" role="img" aria-label="Critical"></ix-badge> | ||
| <ix-badge type="status-icon" variant="critical" outline role="img" aria-label="Critical outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="critical" enable-animation role="img" aria-label="Critical pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="critical" outline enable-animation role="img" aria-label="Critical pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="status-icon" variant="warning" role="img" aria-label="Warning"></ix-badge> | ||
| <ix-badge type="status-icon" variant="warning" outline role="img" aria-label="Warning outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="warning" enable-animation role="img" aria-label="Warning pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="warning" outline enable-animation role="img" aria-label="Warning pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="status-icon" variant="success" role="img" aria-label="Success"></ix-badge> | ||
| <ix-badge type="status-icon" variant="success" outline role="img" aria-label="Success outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="success" enable-animation role="img" aria-label="Success pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="success" outline enable-animation role="img" aria-label="Success pulse outline"></ix-badge> | ||
|
|
||
| <ix-badge type="status-icon" variant="info" role="img" aria-label="Info"></ix-badge> | ||
| <ix-badge type="status-icon" variant="info" outline role="img" aria-label="Info outline"></ix-badge> | ||
| <ix-badge type="status-icon" variant="info" enable-animation role="img" aria-label="Info pulse"></ix-badge> | ||
| <ix-badge type="status-icon" variant="info" outline enable-animation role="img" aria-label="Info pulse outline"></ix-badge> | ||
|
|
||
| </div> | ||
| `, | ||
| }) | ||
| export default class BadgeStatusIcon {} |
28 changes: 28 additions & 0 deletions
28
packages/angular-standalone-test-app/src/preview-examples/badge.css
This file contains hidden or 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,28 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: 2026 Siemens AG | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * This source code is licensed under the MIT license found in the | ||
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| .row { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| align-items: center; | ||
| gap: 2rem; | ||
| margin-bottom: 1.5rem; | ||
| /* Room for attached overlays and pulse rings above the content. */ | ||
| padding-top: 1.5rem; | ||
| } | ||
|
|
||
| .styled { | ||
| width: 7rem; | ||
| --ix-badge-max-width: 7rem; | ||
| } | ||
|
|
||
| .styled-ellipsis-4 { | ||
| width: 4rem; | ||
| --ix-badge-max-width: 4rem; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.