Skip to content

Commit 38f980e

Browse files
committed
refactor(samples): replace css-vars with tokens mixin
1 parent a6bb888 commit 38f980e

33 files changed

Lines changed: 50 additions & 75 deletions

File tree

projects/app-lob/src/styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ body {
4242
igx-hierarchical-grid,
4343
igx-pivot-grid,
4444
igx-tree-grid {
45-
--igx-chip-disabled-background: #616161;
46-
--igx-chip-disabled-border-color: #616161;
47-
--igx-chip-disabled-text-color: #BDBDBD;
45+
--ig-chip-disabled-background: #616161;
46+
--ig-chip-disabled-border-color: #616161;
47+
--ig-chip-disabled-text-color: #BDBDBD;
4848
}
4949
}
5050
.fin-dark-theme {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ $custom-badge-theme: badge-theme(
66
$border-radius: 4px
77
);
88

9-
@include css-vars($custom-badge-theme);
10-
9+
@include tokens($custom-badge-theme, $mode: 'scoped');

src/app/data-display/chip/chip-styling/chip-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ igx-chip {
4444
// $border-radius: rem(5px)
4545
// );
4646

47-
// @include css-vars($custom-chip-theme)
48-
47+
// @include tokens($custom-chip-theme, $mode: 'scoped');

src/app/grid/grid-groupby-styling/grid-groupby-styling.component.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ $custom-chips-theme: chip-theme(
2828
$hover-text-color: #e7e7e7
2929
);
3030

31-
@include css-vars($custom-theme);
31+
@include tokens($custom-theme, $mode: 'scoped');
3232

3333
:host {
3434
::ng-deep {
35-
@include chip($custom-chips-theme);
35+
@include tokens($custom-chips-theme, $mode: 'scoped');
3636
}
3737
}
38-

src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ $custom-theme: grid-theme(
1212
$sortable-header-icon-hover-color: #e9bd0d
1313
);
1414

15-
@include css-vars($custom-theme);
16-
15+
@include tokens($custom-theme, $mode: 'scoped');

src/app/grid/grid-row-pinning-styling/grid-row-pinning-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ $custom-theme: grid-theme(
88
$cell-active-border-color: #ffcd0f
99
);
1010

11-
@include css-vars($custom-theme);
12-
11+
@include tokens($custom-theme, $mode: 'scoped');

src/app/grid/grid-sample-pinning-styling/grid-pinning-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ $custom-theme: grid-theme(
88
$cell-active-border-color: #ffcd0f
99
);
1010

11-
@include css-vars($custom-theme);
12-
11+
@include tokens($custom-theme, $mode: 'scoped');

src/app/grid/grid-sorting-styling/grid-sorting-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ $custom-theme: grid-theme(
66
$sortable-header-icon-hover-color: black
77
);
88

9-
@include css-vars($custom-theme);
10-
9+
@include tokens($custom-theme, $mode: 'scoped');

src/app/grid/grid-summary-template/grid-summary-template.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ igx-buttongroup {
2828
align-items: center;
2929
gap: 4px;
3030
justify-content: space-between;
31-
color: hsla(var(--igx-gray-900));
31+
color: hsla(var(--ig-gray-900));
3232

3333
span {
3434
user-select: all;
@@ -50,7 +50,7 @@ igx-buttongroup {
5050
> * {
5151
padding: 8px 0;
5252
line-height: 18px;
53-
border-bottom: 1px dashed hsla(var(--igx-gray-400));
53+
border-bottom: 1px dashed hsla(var(--ig-gray-400));
5454

5555
&:last-child {
5656
border-bottom: none;

src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ $custom-theme: grid-theme(
99
$header-border-color: rgba(0, 0, 0, 0.08)
1010
);
1111

12-
@include css-vars($custom-theme);
13-
12+
@include tokens($custom-theme, $mode: 'scoped');

0 commit comments

Comments
 (0)