Skip to content

Commit b1bfc23

Browse files
authored
Merge pull request #3640 from IgniteUI/simeonoff/summaries-styling-samples
refactor(grid-samples): update grid summary styling samples
2 parents d989fc5 + 41b675c commit b1bfc23

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed
Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4+
$summaries-background: #e0f3ff;
5+
46
$custom-theme: grid-summary-theme(
5-
$background-color: #e0f3ff,
6-
$focus-background-color: rgba(#94d1f7, .3),
7-
$label-color: #e41c77,
8-
$result-color: black,
9-
$pinned-border-width: 2px,
10-
$pinned-border-style: dotted,
11-
$pinned-border-color: #e41c77
7+
$background-color: $summaries-background,
8+
$focus-background-color: rgba(#94d1f7, 0.3),
9+
$label-color: #e41c77,
10+
$result-color: black,
11+
$pinned-border-width: 2px,
12+
$pinned-border-style: dotted,
13+
$pinned-border-color: #e41c77,
1214
);
1315

1416
:host {
15-
::ng-deep {
16-
@include css-vars($custom-theme);
17-
}
17+
::ng-deep {
18+
igx-grid-summary-row {
19+
--summaries-patch-background: #{$summaries-background};
20+
}
21+
22+
@include css-vars($custom-theme);
23+
}
1824
}

src/app/hierarchical-grid/hierarchical-grid-summary-styling/hierarchical-grid-summary-styling.component.scss

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
@use "layout.scss";
22
@use "igniteui-angular/theming" as *;
33

4+
$summaries-background: #e0f3ff;
5+
46
$custom-theme: grid-summary-theme(
5-
$background-color: #e0f3ff,
6-
$focus-background-color: rgba(#94d1f7, .3),
7-
$label-color: #e41c77,
8-
$result-color: black,
9-
$pinned-border-width: 2px,
10-
$pinned-border-style: dotted,
11-
$pinned-border-color: #e41c77
7+
$background-color: $summaries-background,
8+
$focus-background-color: rgba(#94d1f7, 0.3),
9+
$label-color: #e41c77,
10+
$result-color: black,
11+
$pinned-border-width: 2px,
12+
$pinned-border-style: dotted,
13+
$pinned-border-color: #e41c77,
1214
);
1315

1416
:host {
15-
::ng-deep {
16-
@include css-vars($custom-theme);
17-
}
17+
--igx-grid-summaries-patch-background: #{$summaries-background};
18+
19+
::ng-deep {
20+
@include css-vars($custom-theme);
21+
}
1822
}
19-

0 commit comments

Comments
 (0)