File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ body.querySelector(`[data-tab="${active}"]`)?.classList.add("active");
42
42
style = { ` --accent-color: ${button .accent ?? " #ffffff" } ` }
43
43
>
44
44
<span >
45
- { button .image && <Image src = { button .image } alt = { button .name } />}
45
+ { button .image && <Image src = { button .image } alt = { button .name } />}
46
46
{ button .icon && <Icon name = { button .icon } group = " solid" />}
47
47
{ button .name }
48
48
</span >
@@ -89,6 +89,8 @@ body.querySelector(`[data-tab="${active}"]`)?.classList.add("active");
89
89
</script >
90
90
91
91
<style lang =" scss" >
92
+ $transition-length: 0.3s;
93
+
92
94
.tabs {
93
95
position: relative;
94
96
width: 100%;
@@ -136,11 +138,12 @@ body.querySelector(`[data-tab="${active}"]`)?.classList.add("active");
136
138
bottom: 0px;
137
139
left: 0px;
138
140
z-index: 0;
139
- transition: height ease-in-out 0.3s ;
141
+ transition: height ease-in-out $transition-length ;
140
142
background-color: var(--accent-color);
141
143
}
142
144
143
145
& > span {
146
+ transition: filter $transition-length ease-in-out;
144
147
filter: saturate(0);
145
148
display: inline-flex;
146
149
align-items: center;
@@ -161,6 +164,7 @@ body.querySelector(`[data-tab="${active}"]`)?.classList.add("active");
161
164
}
162
165
&::after {
163
166
height: 0.1em;
167
+ box-shadow: 0px -1px 6px 0px var(--accent-color);
164
168
}
165
169
}
166
170
You can’t perform that action at this time.
0 commit comments