Skip to content

Commit 8b91852

Browse files
committed
feat(samples): update styling samples
1 parent 2f98984 commit 8b91852

18 files changed

Lines changed: 55 additions & 68 deletions

File tree

src/app/data-display/badge/badge-styling-sample/badge-styling-sample.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="wrapper">
88
<div>
99
<igx-avatar icon="person" shape="circle" size="small"></igx-avatar>
10-
<igx-badge [icon]="member.icon" [type]="member.type" class="badge-style"></igx-badge>
10+
<igx-badge [icon]="member.icon" shape="square" class="badge-style"></igx-badge>
1111
</div>
1212
<div class="contact-container">
1313
<span class="contact-name">{{ member.name }}</span>

src/app/data-display/badge/badge-styling-sample/badge-styling-sample.component.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
@use "igniteui-angular/theming" as *;
33

44
$custom-badge-theme: badge-theme(
5-
$border-radius: 15px,
6-
$icon-color: white,
7-
$text-color: black
5+
$background-color: #57a5cd,
6+
$border-radius: 4px
87
);
98

109
@include css-vars($custom-badge-theme);
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4-
$custom-button-theme: button-theme(
5-
$foreground: #fdfdfd,
6-
$hover-foreground: #fdfdfd,
7-
$focus-foreground: #fdfdfd,
4+
$custom-button-theme: contained-button-theme(
85
$background: #345779,
9-
$hover-background: #2e4d6b,
10-
$focus-background: #2e4d6b,
11-
$disabled-foreground: #2e4d6b,
126
);
137

148
.button-sample {
159
@include css-vars($custom-button-theme);
1610
}
17-

src/app/data-entries/dropdown/dropdown-styling/dropdown-styling.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $custom-drop-down-theme: drop-down-theme(
66
$item-text-color: #2dabe8,
77
$hover-item-text-color: #345779,
88
$selected-item-background: #345779,
9-
$hover-item-background: rgba(0, 0, 0, 0.12),
109
);
1110

1211
.drop-down__scroll-container {

src/app/data-entries/icon-button/icon-button-styling/icon-button-styling.component.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "igniteui-angular/theming" as *;
2+
13
.wrapper {
24
display: flex;
35
flex-flow: row wrap;
@@ -12,6 +14,24 @@
1214
margin: 16px 0;
1315
}
1416

17+
// $custom-flat: flat-icon-button-theme(
18+
// $foreground: #011627,
19+
// );
20+
21+
// $custom-contained: contained-icon-button-theme(
22+
// $background: #ECAA53,
23+
// );
24+
25+
// $custom-outlined: outlined-icon-button-theme(
26+
// $foreground: #011627,
27+
// );
28+
29+
// :host {
30+
// @include css-vars($custom-flat);
31+
// @include css-vars($custom-contained);
32+
// @include css-vars($custom-outlined);
33+
// }
34+
1535
[igxIconButton="flat"] {
1636
--foreground: #011627;
1737
--background: #FEFEFE;

src/app/data-entries/input-group/input-group-styling/input-group-styling.component.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@
88
</igx-suffix>
99
<igx-hint position="start">Ex.: +359 888 123 456</igx-hint>
1010
</igx-input-group>
11+
12+
<igx-input-group type="border">
13+
<igx-prefix>+359</igx-prefix>
14+
<label igxLabel for="phone">Phone</label>
15+
<input type="tel" igxInput name="phone" />
16+
<igx-suffix>
17+
<igx-icon>phone</igx-icon>
18+
</igx-suffix>
19+
<igx-hint position="start">Ex.: +359 888 123 456</igx-hint>
20+
</igx-input-group>
1121
</article>
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4+
.sample-column {
5+
gap: 1rem;
6+
}
7+
48
$custom-input-group: input-group-theme(
5-
$filled-text-color: #288a54,
6-
$idle-text-color: #288a54,
7-
$idle-bottom-line-color: #288a54,
8-
$focused-secondary-color: #174f30,
9-
$box-background: #eeeeee
9+
$box-background: #57a5cd,
10+
$border-color: #57a5cd,
1011
);
1112

1213
@include css-vars($custom-input-group);

src/app/data-entries/select/select-styling/select-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
@use "igniteui-angular/theming" as *;
33

44
$custom-select-theme: select-theme(
5-
$toggle-button-background: #2b2b2b,
6-
$toggle-button-background-focus: #808080,
5+
$toggle-button-background: #57a5cd,
76
);
87

98
@include css-vars($custom-select-theme);

src/app/data-entries/switch/switch-styling/switch-styling.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@use "igniteui-angular/theming" as *;
33

44
$custom-switch-theme: switch-theme(
5+
$thumb-off-color: #7cadd5,
56
$thumb-on-color: #ecaa53,
67
);
78

src/app/interactions/dialog/dialog-styling-sample/dialog-styling-sample.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
$my-dialog-theme: dialog-theme(
55
$background: #011627,
66
$title-color: #ecaa53,
7-
$border-radius: .3,
7+
$border-radius: 5px,
88
);
99

10-
$dark-button: contained-button-theme(
10+
$custom-button: contained-button-theme(
1111
$background: #ecaa53,
1212
$foreground: #011627,
1313
);
1414

1515
.dialog-container {
16-
@include css-vars($dark-button);
16+
@include css-vars($custom-button);
1717
}
1818

1919
:host {

0 commit comments

Comments
 (0)