Skip to content

Commit d4ccf6f

Browse files
MKirovaMKirova
authored andcommitted
fix(igxGrid): Adjust expandable cell styles.
1 parent e4a53bd commit d4ccf6f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,9 @@
15141514
}
15151515

15161516
%igx-grid__td--bool {
1517+
display: flex;
1518+
flex-grow: 1;
1519+
15171520
igx-icon {
15181521
--component-size: #{if($variant == 'indigo', 2, 1)};
15191522
}
@@ -2084,7 +2087,7 @@
20842087

20852088
.sort-icon {
20862089
color: var-get($theme, 'header-selected-text-color');
2087-
2090+
20882091
::after {
20892092
background: var-get($theme, 'header-selected-background');
20902093
}
@@ -2112,15 +2115,15 @@
21122115
&%igx-grid-th--sorted {
21132116
.sort-icon {
21142117
color: var-get($theme, 'header-selected-text-color');
2115-
2118+
21162119
> igx-icon {
21172120
color: inherit;
21182121
}
21192122

21202123
&:focus,
21212124
&:hover {
21222125
color: var-get($theme, 'header-selected-text-color');
2123-
2126+
21242127
> igx-icon {
21252128
color: inherit;
21262129
}
@@ -2177,14 +2180,14 @@
21772180
.sort-icon {
21782181
opacity: 1;
21792182
color: var-get($theme, 'sorted-header-icon-color');
2180-
2183+
21812184
> igx-icon {
21822185
color: inherit;
21832186
}
21842187

21852188
&:hover {
21862189
color: var-get($theme, 'sortable-header-icon-hover-color');
2187-
2190+
21882191
> igx-icon {
21892192
color: inherit;
21902193
}
@@ -2220,6 +2223,7 @@
22202223
%grid-cell-number {
22212224
text-align: $grid-cell-align-num;
22222225
justify-content: flex-end;
2226+
flex-grow: 1;
22232227

22242228
%grid-cell-header-icons {
22252229
justify-content: flex-start;

projects/igniteui-angular/src/lib/grids/grid/expandable-cell.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<div
99
igxTextHighlight class="igx-grid__td-text"
1010
[cssClass]="highlightClass"
11+
[class.igx-grid__td--number]="column.dataType === 'number' || column.dataType === 'percent' || column.dataType === 'currency'"
1112
[activeCssClass]="activeHighlightClass"
1213
[groupName]="gridID"
1314
[value]="formatter ? (value | columnFormatter:formatter:rowData)
@@ -32,11 +33,13 @@
3233
}
3334

3435
@if (column.dataType === 'boolean' && !this.formatter) {
36+
<div [class.igx-grid__td--bool]="column.dataType === 'boolean'">
3537
<igx-icon
3638
family="default"
3739
[name]="value ? 'confirm' : 'close'"
3840
[ngClass]="{ 'igx-icon--success': value, 'igx-icon--error': !value }">
3941
</igx-icon>
42+
</div>
4043
}
4144
@if (column.dataType === 'image') {
4245
<img [src]="value" [alt]="value | igxCellImageAlt" />

0 commit comments

Comments
 (0)