Skip to content

Commit

Permalink
fix: removes minor layout bugs like spacings caused by merging
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-sch committed Apr 11, 2024
1 parent b52e22f commit 548f15d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions packages/components/src/components/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
inset-block-end: calc(
-1 * (#{variables.$db-spacing-fixed-2xs} + #{variables.$db-border-height-xs})
);
z-index: -2;
}
}
}
Expand All @@ -39,13 +40,13 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
.db-tab-item {
@include db-puls.set-db-puls-vertical;

&::after {
inset-inline-start: 0;
z-index: -2;
}

&:has(input:checked) {
@include db-puls.show-db-puls-vertical;

&::after {
inset-inline-start: 0;
z-index: -2;
}
}
}
}
Expand Down Expand Up @@ -105,8 +106,10 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
inline-size: 100%;
}

/* horizontal track for pulse */
.db-tab-list {
margin-inline-end: auto;

/* horizontal track for pulse */
&::before {
@extend %pulse-track;
block-size: variables.$db-border-height-xs;
Expand All @@ -128,7 +131,7 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
.db-tab-item {
margin-block-start: variables.$db-spacing-fixed-xs;
margin-block-end: calc(
2 * #{variables.$db-spacing-fixed-2xs} + #{variables.$db-border-height-lg}
2 * #{variables.$db-spacing-fixed-2xs} + #{variables.$db-border-height-xs}
);
}

Expand Down Expand Up @@ -194,8 +197,6 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
margin-block-end: auto;

.db-tab-item {
// todo: inline-size: 100%;

label {
position: relative;
}
Expand Down Expand Up @@ -239,7 +240,7 @@ $max-tabs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

.db-tab-item {
$padding-start: calc(
#{variables.$db-border-height-lg} + #{variables.$db-spacing-fixed-2xs}
#{variables.$db-border-height-xs} + #{variables.$db-spacing-fixed-2xs}
);
padding-inline-start: $padding-start;

Expand Down

0 comments on commit 548f15d

Please sign in to comment.