4
4
5
5
$tabs-background-color : theme (' tabs-background-color' , transparent );
6
6
$tabs-border-color : theme (' tabs-border-color' , transparent );
7
- $tabs-color : theme (' tabs-color' , colors .font (secondary-info ));
8
- $tabs-hover-color : theme (' tabs-hover-border-color' , colors .font (titles-labels ));
7
+ $tabs-color : theme (' tabs-color' , colors .font (annotation ));
8
+
9
+ $tabs-hover-color : theme (' tabs-hover-border-color' , colors .font (hint ));
10
+
9
11
$tabs-selected-color : theme (
10
12
' tabs-selected-color' ,
11
13
colors .button (primary-default )
@@ -23,6 +25,7 @@ $tabs-hover-selected-border-color: theme(
23
25
colors .button (primary-hover )
24
26
);
25
27
$tabs-active-color : theme (' tabs-active-color' , colors .font (titles-labels ));
28
+
26
29
$tabs-active-selected-color : theme (
27
30
' tabs-active-selected-color' ,
28
31
colors .button (primary-press )
@@ -97,11 +100,15 @@ $tabs-disabled-selected-border-color: theme(
97
100
& .hover ,
98
101
& :hover {
99
102
color : $tabs-hover-color ;
103
+ border-block-end-color : $tabs-hover-color ;
104
+ border-block-end-width : lengths .border-width (4 );
100
105
}
101
106
102
107
& .active ,
103
108
& :active {
104
109
color : $tabs-active-color ;
110
+ border-block-end-color : $tabs-active-color ;
111
+ border-block-end-width : lengths .border-width (4 );
105
112
}
106
113
107
114
@include on-focus-visible {
@@ -129,14 +136,14 @@ $tabs-disabled-selected-border-color: theme(
129
136
border-block-end-width : lengths .border-width (2 );
130
137
border-inline-width : lengths .border-width (2 );
131
138
132
- & :hover:not (.rcx-tabs__item--selected--disabled ) {
139
+ & :hover:not (.rcx-tabs__item--selected--disabled ),
140
+ & .hover :not (.rcx-tabs__item--selected--disabled ) {
133
141
color : $tabs-hover-selected-color ;
134
142
border-block-end-color : $tabs-hover-selected-border-color ;
135
- border-block-end-width : lengths .border-width (4 );
136
143
}
137
144
138
- & .active ,
139
- & :active {
145
+ & .active :not ( .rcx-tabs__item--selected--disabled ) ,
146
+ & :active:not ( .rcx-tabs__item--selected--disabled ) {
140
147
color : $tabs-active-selected-color ;
141
148
border-block-end-color : $tabs-active-selected-border-color ;
142
149
}
@@ -161,18 +168,12 @@ $tabs-disabled-selected-border-color: theme(
161
168
162
169
display : flex ;
163
170
164
- & --underline {
171
+ & --with-divider {
165
172
border-block-end : lengths .border-width (2 ) solid colors .stroke (light );
166
173
167
174
.rcx-tabs__item {
168
175
margin-block-end : lengths .margin (-2 );
169
-
170
- border-width : 0 ;
171
176
border-block-width : lengths .border-width (2 );
172
-
173
- & :first-child {
174
- margin-inline-start : lengths .margin (-12 );
175
- }
176
177
}
177
178
}
178
179
}
0 commit comments