Skip to content

Commit 4defc29

Browse files
authored
Merge pull request #15861 from IgniteUI/mkirova/fix-15794
fix(igxGrid): Adjust expandable cell styles.
2 parents b7083ca + d4ccf6f commit 4defc29

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,9 @@
15131513
}
15141514

15151515
%igx-grid__td--bool {
1516+
display: flex;
1517+
flex-grow: 1;
1518+
15161519
igx-icon {
15171520
--component-size: #{if($variant == 'indigo', 2, 1)};
15181521
}
@@ -2217,6 +2220,7 @@
22172220
%grid-cell-number {
22182221
text-align: $grid-cell-align-num;
22192222
justify-content: flex-end;
2223+
flex-grow: 1;
22202224

22212225
%grid-cell-header-icons {
22222226
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)