Skip to content

Commit 0dc0aef

Browse files
committed
feat: refine Tab component styles for improved visual consistency in vertical and horizontal orientations
1 parent ea5e351 commit 0dc0aef

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/components/tab/Tab.style.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,30 @@
2929
content: "";
3030
position: absolute;
3131
background: transparent;
32-
border-radius: 50rem;
3332
background: helpers.backgroundColor(variables.$secondary);
3433
}
3534

3635
&[data-orientation="vertical"] {
37-
padding-left: variables.$xs * 2;
3836

3937
&:after {
40-
height: 50%;
38+
border-bottom-right-radius: 50rem;
39+
border-top-right-radius: 50rem;
40+
height: 35%;
4141
width: 3px;
4242
top: 50%;
4343
transform: translateY(-50%);
44-
left: variables.$xs;
44+
left: 0;
4545
}
4646
}
4747

4848
&[data-orientation="horizontal"] {
49-
50-
padding-bottom: variables.$xxs * 2;
51-
5249
&:after {
50+
border-top-left-radius: 50rem;
51+
border-top-right-radius: 50rem;
5352
width: 10%;
5453
min-width: 28px;
5554
height: 3px;
56-
bottom: variables.$xxs;
55+
bottom: 0;
5756
left: 50%;
5857
transform: translateX(-50%);
5958
}

0 commit comments

Comments
 (0)