@@ -135,11 +135,11 @@ export class UUITabElement extends ActiveMixin(LabelMixin('', LitElement)) {
135
135
var (--uui-tab-padding-horizontal , var (--uui-size-5 ));
136
136
}
137
137
138
- : host (: not ([active ]) : not ([ disabled ])) # button : hover {
138
+ : host (: not ([disabled ])) # button : hover {
139
139
color : var (--uui-tab-text-hover , var (--uui-color-default-emphasis ));
140
140
}
141
141
142
- : host (: not ([active ]) : not ([ disabled ])) # button : active {
142
+ : host (: not ([disabled ])) # button : active {
143
143
box-shadow :
144
144
inset 0 2px 4px rgba (0 , 0 , 0 , 0.15 ),
145
145
0 1px 2px rgba (0 , 0 , 0 , 0.05 );
@@ -149,9 +149,6 @@ export class UUITabElement extends ActiveMixin(LabelMixin('', LitElement)) {
149
149
color : var (--uui-tab-text-active , unset);
150
150
}
151
151
152
- : host ([active ]) # button {
153
- cursor : default;
154
- }
155
152
: host ([disabled ]) # button {
156
153
color : var (--uui-color-disabled-contrast );
157
154
cursor : default;
@@ -162,9 +159,6 @@ export class UUITabElement extends ActiveMixin(LabelMixin('', LitElement)) {
162
159
position : absolute;
163
160
background-color : var (--uui-color-current );
164
161
opacity : 0 ;
165
- --transitionDuration : 120ms ;
166
- --barWidth : 4px ;
167
- --borderRadius : 3px ;
168
162
}
169
163
: host ([active ]) # button ::before {
170
164
opacity : 1 ;
@@ -174,32 +168,32 @@ export class UUITabElement extends ActiveMixin(LabelMixin('', LitElement)) {
174
168
: host ([orientation = 'horizontal' ]) # button ::before {
175
169
left : auto;
176
170
right : auto;
177
- border-radius : var (--borderRadius ) var (--borderRadius ) 0 0 ;
171
+ border-radius : var (--uui-border-radius ) var (--uui-border-radius ) 0 0 ;
178
172
height : 0px ;
179
173
width : calc (100% - 15px );
180
174
bottom : 0 ;
181
175
transition :
182
- opacity ease-in-out var ( --transitionDuration ) ,
183
- height ease-in-out var ( --transitionDuration ) ;
176
+ opacity linear 120 ms ,
177
+ height ease-in-out 120 ms ;
184
178
}
185
179
: host ([active ][orientation = 'horizontal' ]) # button ::before {
186
- height : var ( --barWidth ) ;
180
+ height : 4 px ;
187
181
}
188
182
189
183
/* VERTICAL */
190
184
: host ([orientation = 'vertical' ]) # button ::before {
191
185
top : auto;
192
186
bottom : auto;
193
- border-radius : 0 var (--borderRadius ) var (--borderRadius ) 0 ;
187
+ border-radius : 0 var (--uui-border-radius ) var (--uui-border-radius ) 0 ;
194
188
height : calc (100% - 12px );
195
189
width : 0px ;
196
190
left : 0 ;
197
191
transition :
198
- opacity ease-in-out var ( --transitionDuration ) ,
199
- width ease-in-out var ( --transitionDuration ) ;
192
+ opacity linear 120 ms ,
193
+ width ease-in-out 120 ms ;
200
194
}
201
195
: host ([active ][orientation = 'vertical' ]) # button ::before {
202
- width : var ( --barWidth ) ;
196
+ width : 4 px ;
203
197
}
204
198
205
199
# button : hover ::before {
0 commit comments