-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/pill): fix custom outline variant and add variant examples (#…
…968)
- Loading branch information
1 parent
621cdd9
commit 074d662
Showing
20 changed files
with
580 additions
and
17 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
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
106 changes: 106 additions & 0 deletions
106
packages/angular-test-app/src/preview-examples/pill-variants.ts
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,106 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 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'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
template: ` | ||
<ix-layout-grid> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="primary" icon="info"> Primary </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="primary" icon="info" outline> Primary </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="alarm" icon="info"> Alarm </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="alarm" icon="info" outline> Alarm </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="critical" icon="info"> Critical </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="critical" icon="info" outline> Critical </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="warning" icon="info"> Warning </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="warning" icon="info" outline> Warning </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="success" icon="info"> Success </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="success" icon="info" outline> Success </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="info" icon="info"> Info </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="info" icon="info" outline> Info </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill variant="neutral" icon="info"> Neutral </ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill variant="neutral" icon="info" outline> Neutral </ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
<ix-row> | ||
<ix-col> | ||
<ix-pill | ||
variant="custom" | ||
color="color-soft-text" | ||
background="purple" | ||
icon="info" | ||
> | ||
Custom | ||
</ix-pill> | ||
</ix-col> | ||
<ix-col> | ||
<ix-pill | ||
variant="custom" | ||
color="color-soft-text" | ||
background="purple" | ||
icon="info" | ||
outline | ||
> | ||
Custom | ||
</ix-pill> | ||
</ix-col> | ||
</ix-row> | ||
</ix-layout-grid> | ||
`, | ||
styles: ['ix-pill { min-width: 7rem; }'], | ||
}) | ||
export default class Pill {} |
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
Binary file modified
BIN
-2.27 KB
(88%)
...chip/chip.e2e.ts-snapshots/chip-basic-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.21 KB
(89%)
...hip/chip.e2e.ts-snapshots/chip-basic-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+644 Bytes
(110%)
...hip/chip.e2e.ts-snapshots/chip-custom-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+513 Bytes
(100%)
...ip/chip.e2e.ts-snapshots/chip-custom-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file modified
BIN
+3.58 KB
(110%)
...pill/pill.e2e.ts-snapshots/pill-basic-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.79 KB
(110%)
...ill/pill.e2e.ts-snapshots/pill-basic-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.