Skip to content

Commit

Permalink
fix(kit): TasbWithMore fix redundant left margin for single element
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin committed Mar 18, 2024
1 parent f46ea6f commit c2bd178
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions projects/kit/components/tabs/tab/tab.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
box-shadow: inset 0 -2px var(--tui-base-03);
}

:host-context(tui-tabs >):first-child,
:host-context([tuiTabs] >):first-child,
:host-context(tui-tabs > :first-child),
:host-context([tuiTabs] > :first-child) {
:host-context(tui-tabs > :not(.t-overflown) >):first-child {
margin-left: 0;
}

:host-context(tui-tabs > [tuiTab] ~ :not(.t-overflown) >):first-child {
margin-left: var(--tui-tab-margin, 1.5rem);
}

:host {
.transition(~'color, box-shadow, opacity, background');
.clearbtn();
Expand Down

0 comments on commit c2bd178

Please sign in to comment.