Skip to content

Commit c350b1b

Browse files
authored
Merge pull request #9933 from IgniteUI/mpopov/chip-z-index
Add z-index to the chip ghost
2 parents 55476e9 + c22dd32 commit c350b1b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@
578578

579579
%igx-chip__ghost {
580580
position: absolute;
581-
z-index: 10;
582581
box-shadow: --var($theme, 'ghost-shadow');
583582
overflow: hidden;
584583
color: --var($theme, 'focus-text-color');
@@ -606,6 +605,14 @@
606605
padding: map-get($chip-padding, 'compact');
607606
}
608607
}
608+
609+
// Remark: If z-index is not set, the chip would
610+
// hide behind it's parent grid as it has a z-index of 1
611+
%igx-chip__ghost,
612+
%igx-chip__ghost--cosy,
613+
%igx-chip__ghost--compact {
614+
z-index: 10;
615+
}
609616
}
610617

611618
/// Adds typography styles for the igx-chip component.

0 commit comments

Comments
 (0)