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
…#7022)

(cherry picked from commit 9245d8b)
  • Loading branch information
vladimirpotekhin committed Mar 19, 2024
1 parent aac3883 commit 87a78eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions projects/kit/components/tabs/tab/tab.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@

: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,
:host-context([tuiTabs] > :not(.t-overflown) >):first-child {
margin-left: 0;
}

:host-context([tuiTabs] > [tuiTab] ~ :not(.t-overflown) >):first-child,
: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 87a78eb

Please sign in to comment.