Skip to content

Commit e00f93e

Browse files
committed
feat: enhance Tab component styles for vertical and horizontal orientations
1 parent 46c6edf commit e00f93e

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

src/components/tab/Tab.style.scss

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,36 @@
2323
position: relative;
2424
box-sizing: border-box;
2525

26+
&:after {
27+
content: "";
28+
position: absolute;
29+
background: transparent;
30+
border-radius: 50rem;
31+
}
32+
2633
&[data-orientation="vertical"] {
27-
border-left: 2px solid transparent;
34+
&:after {
35+
height: 100%;
36+
width: 2px;
37+
top: 0;
38+
left: 0;
39+
}
2840
}
41+
2942
&[data-orientation="horizontal"] {
30-
border-bottom: 2px solid transparent;
43+
&:after {
44+
width: 100%;
45+
height: 2px;
46+
bottom: 0;
47+
left: 0;
48+
}
3149
}
3250

3351
&[aria-selected=true] {
34-
&[data-orientation="vertical"] {
35-
border-left: 2px solid helpers.borderColor(variables.$info);
36-
}
37-
&[data-orientation="horizontal"] {
38-
border-bottom: 2px solid helpers.borderColor(variables.$info);
52+
&[data-orientation="vertical"], &[data-orientation="horizontal"] {
53+
&:after {
54+
background: variables.$info;
55+
}
3956
}
4057
}
4158

0 commit comments

Comments
 (0)