Skip to content

Commit 1943956

Browse files
committed
chore(samples): update additional samples, using tokens
1 parent b01d9c0 commit 1943956

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

projects/app-crm/src/app/grid-crm/grid-crm.component.scss

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
$title-text-color: contrast-color($color: 'primary', $variant: 500)
3333
);
3434

35-
$crm-grid-toolbar-button: button-theme(
35+
$crm-grid-toolbar-button: outlined-button-theme(
3636
$background: color($light-palette, 'primary', 800),
3737
$hover-background: color($light-palette, 'primary', 900),
3838
$active-foreground: contrast-color($light-palette, 'primary', 900),
3939
$focus-foreground: contrast-color($light-palette, 'primary', 900)
4040
);
4141

42-
$crm-grid-search-button: button-theme(
42+
$crm-grid-search-button: flat-icon-button-theme(
4343
$background: transparent,
4444
$focus-background: color($light-palette, 'gray', 200),
4545
$hover-background: color($light-palette, 'gray', 200)
@@ -110,7 +110,7 @@
110110
width: 70%
111111
}
112112

113-
@include css-vars($crm-grid-toolbar);
113+
@include tokens($crm-grid-toolbar, $mode: 'scoped');
114114

115115
.igx-grid-toolbar__actions {
116116
.igx-button--outlined {
@@ -139,7 +139,7 @@
139139
}
140140

141141
.igx-grid-toolbar__actions {
142-
@include css-vars($crm-grid-toolbar-button);
142+
@include tokens($crm-grid-toolbar-button);
143143
}
144144

145145
.crm-sample-toolbar__title {
@@ -205,7 +205,7 @@
205205
box-shadow: none;
206206
}
207207

208-
@include css-vars($crm-input-drop-down);
208+
@include tokens($crm-input-drop-down, $mode: 'scoped');
209209

210210
.sample-flex-container {
211211
.igx-input-group,
@@ -281,13 +281,13 @@
281281
.igx-input-group--search .igx-input-group__bundle {
282282
background-color: color($color: 'primary', $variant: 800);
283283

284-
@include css-vars($crm-grid-search-button);
284+
@include tokens($crm-grid-search-button);
285285
}
286286

287287
.grid__wrapper:not(.dark_grid) {
288-
@include css-vars($crm-grid-theme);
289-
@include css-vars($summary-theme);
290-
@include css-vars($checkbox-theme);
288+
@include tokens($crm-grid-theme);
289+
@include tokens($summary-theme);
290+
@include tokens($checkbox-theme);
291291
}
292292

293293

@@ -327,13 +327,13 @@
327327

328328
.dark_grid {
329329
@include palette($dark-palette);
330-
@include css-vars($checkbox-dark-theme);
331-
@include css-vars($crm-dark-grid-theme);
332-
@include css-vars($crm-grid-dark-button);
333-
@include css-vars($crm-grid-dark-progress);
330+
@include tokens($checkbox-dark-theme);
331+
@include tokens($crm-dark-grid-theme);
332+
@include tokens($crm-grid-dark-button);
333+
@include tokens($crm-grid-dark-progress);
334334

335335
.igx-grid-toolbar__actions {
336-
@include css-vars($crm-grid-toolbar-button);
336+
@include tokens($crm-grid-toolbar-button);
337337
}
338338

339339
.sample-flex-container {

projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $custom-badge-theme: badge-theme(
5959
.selected {
6060
igx-badge {
6161
& {
62-
@include css-vars($custom-badge-theme);
62+
@include tokens($custom-badge-theme);
6363
}
6464

6565
position: absolute;
@@ -96,8 +96,8 @@ $custom-badge-theme: badge-theme(
9696
}
9797

9898
.analytics-btn {
99-
@include css-vars(
100-
button-theme(
99+
@include tokens(
100+
contained-button-theme(
101101
$foreground: contrast-color($color: 'gray', $variant: 900),
102102
$background: color($color: 'success', $variant: 500, $opacity: .8),
103103
$hover-background: color($color: 'success'),

projects/app-lob/src/app/grid/grid-boston-marathon/grid.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $progressBar-sample-theme: progress-linear-theme(
1616

1717
::ng-deep .default-theme {
1818
.grid__wrapper {
19-
@include css-vars($grid-sample-theme);
20-
@include css-vars($progressBar-sample-theme);
19+
@include tokens($grid-sample-theme);
20+
@include tokens($progressBar-sample-theme);
2121
}
2222
}
2323

src/app/data-entries/buttons/buttons-roundness-sample/buttons-roundness-sample.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
@use '../../../../variables' as *;
22

3-
$flatBtn: button-theme(
3+
$flatBtn: flat-button-theme(
44
$border-radius: .5
55
);
66

7-
$containedBtn: button-theme(
7+
$containedBtn: contained-button-theme(
88
$border-radius: 30px
99
);
1010

11-
$fabBtn: button-theme(
11+
$fabBtn: fab-button-theme(
1212
$border-radius: 10%
1313
);
1414

15-
$iconBtn: icon-button-theme(
15+
$iconBtn: flat-icon-button-theme(
1616
$border-radius: 12px
1717
);
1818

1919
.flat {
20-
@include css-vars($flatBtn);
20+
@include tokens($flatBtn);
2121
}
2222

2323
.contained {
24-
@include css-vars($containedBtn);
24+
@include tokens($containedBtn);
2525
}
2626

2727
.fab {
28-
@include css-vars($fabBtn);
28+
@include tokens($fabBtn);
2929
}
3030

3131
.icon {
32-
@include css-vars($iconBtn);
32+
@include tokens($iconBtn);
3333
}
3434

3535
.buttons-sample {

src/app/data-entries/dropdown/dropdown-multi-level-menu/dropdown-multi-level-menu.component.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $custom-navbar-theme: navbar-theme(
2020
$background: #f8f9fa,
2121
);
2222

23-
$custom-button-theme: button-theme(
23+
$custom-button-theme: flat-button-theme(
2424
$foreground: #666,
2525
$hover-foreground: #0099ff,
2626
$focus-foreground: #0099ff,
@@ -31,9 +31,9 @@ $custom-button-theme: button-theme(
3131
$active-background: transparent,
3232
);
3333

34-
:host::ng-deep {
34+
:host {
3535
--ig-button-font-size: 0.75rem;
3636

37-
@include css-vars($custom-navbar-theme);
38-
@include css-vars($custom-button-theme);
37+
@include tokens($custom-navbar-theme);
38+
@include tokens($custom-button-theme);
3939
}

src/app/data-entries/select/select-header-footer/select-header-footer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ $custom-button-group: button-group-theme(
8585
);
8686

8787
:host ::ng-deep {
88-
@include css-vars($custom-button-group);
88+
@include tokens($custom-button-group);
8989
}

src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $custom-checkbox-theme: checkbox-theme(
77
$border-radius: 10px
88
);
99

10-
.list-sample ::ng-deep {
11-
@include css-vars($custom-checkbox-theme);
10+
.list-sample {
11+
@include tokens($custom-checkbox-theme);
1212
}
1313

1414
.sample {

0 commit comments

Comments
 (0)