Skip to content

Commit d9cda2c

Browse files
authored
Merge pull request #15890 from IgniteUI/mkirova/fix-15794-master
fix(igxGrid): Adjust expandable cell styles.
2 parents 6cc8206 + fef1c1a commit d9cda2c

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
@@ -1534,6 +1534,9 @@
15341534
}
15351535

15361536
%igx-grid__td--bool {
1537+
display: flex;
1538+
flex-grow: 1;
1539+
15371540
igx-icon {
15381541
--component-size: #{if($variant == 'indigo', 2, 1)};
15391542
}
@@ -2238,6 +2241,7 @@
22382241
%grid-cell-number {
22392242
text-align: $grid-cell-align-num;
22402243
justify-content: flex-end;
2244+
flex-grow: 1;
22412245

22422246
%grid-cell-header-icons {
22432247
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)