Skip to content

Commit f3d87fc

Browse files
authored
refactor(tabs-theme): Make sure that border don't break upon adding new tabs dynamically (#15803)
Closes: #15661
1 parent 01338c7 commit f3d87fc

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

projects/igniteui-angular/src/lib/core/styles/components/tabs/_tabs-theme.scss

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,21 @@
253253
flex: 0 0 auto;
254254
background: var-get($theme, 'item-background');
255255
z-index: 1;
256+
257+
@if $bootstrap-theme {
258+
position: relative;
259+
260+
&::after {
261+
content: '';
262+
position: absolute;
263+
bottom: 0;
264+
inset-inline-start: 0;
265+
width: 100%;
266+
height: rem(1px);
267+
background: var-get($theme, 'border-color');
268+
z-index: 0;
269+
}
270+
}
256271
}
257272

258273
%tabs-header-content {
@@ -264,19 +279,6 @@
264279
%tabs-header-wrapper {
265280
position: relative;
266281
flex-grow: 1;
267-
268-
@if $bootstrap-theme {
269-
&::after {
270-
content: '';
271-
position: absolute;
272-
bottom: 0;
273-
inset-inline-start: 0;
274-
width: 100%;
275-
height: rem(1px);
276-
background: var-get($theme, 'border-color');
277-
z-index: 0;
278-
}
279-
}
280282
}
281283

282284
%tabs-header-scroll {

0 commit comments

Comments
 (0)