Skip to content

Commit 2347c54

Browse files
authored
Chip - fix grid gap (#14899)
1 parent 91765bd commit 2347c54

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/chip/_chip-theme.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@
349349

350350
%igx-chip__item {
351351
display: grid;
352-
grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
352+
grid-auto-flow: column;
353+
grid-auto-columns: auto;
353354
align-items: center;
354355
justify-content: center;
355356
text-align: center;
@@ -710,7 +711,6 @@
710711
%igx-chip__content {
711712
@include ellipsis();
712713

713-
grid-column: 2 / 3;
714714
max-width: $chip-max-width;
715715

716716
&:empty {
@@ -853,6 +853,12 @@
853853
}
854854
}
855855
}
856+
857+
%igx-chip__end {
858+
&:has(%igx-chip__remove:only-child) {
859+
display: none;
860+
}
861+
}
856862
}
857863
}
858864

projects/igniteui-angular/src/lib/grids/grid/column-resizing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ describe('IgxGrid - Deferred Column Resizing #grid', () => {
566566
expect(grid.columnList.get(0).width).toBe('25%');
567567
grid.columnList.get(0).autosize();
568568
fixture.detectChanges();
569-
expect(grid.columnList.get(0).width).toBe('32.5%');
569+
expect(grid.columnList.get(0).width).toBe('31%');
570570
}));
571571

572572
it('should autosize column with % width on double click.', fakeAsync(() => {
@@ -578,7 +578,7 @@ describe('IgxGrid - Deferred Column Resizing #grid', () => {
578578
UIInteractions.simulateMouseEvent('dblclick', headerResArea, 0, 0);
579579
tick(200);
580580
fixture.detectChanges();
581-
expect(grid.columnList.get(0).width).toBe('32.5%');
581+
expect(grid.columnList.get(0).width).toBe('31%');
582582
}));
583583
});
584584

0 commit comments

Comments
 (0)