File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,16 @@ interface IStyledTabProps {
21
21
$isVertical ?: boolean ;
22
22
}
23
23
24
- const colorStyles = ( {
25
- theme,
26
- $isSelected,
27
- $isVertical
28
- } : IStyledTabProps & ThemeProps < DefaultTheme > ) => {
24
+ const colorStyles = ( { theme, $isSelected } : IStyledTabProps & ThemeProps < DefaultTheme > ) => {
29
25
const borderColor = $isSelected
30
26
? getColor ( { theme, variable : 'border.primaryEmphasis' } )
31
27
: 'transparent' ;
32
- const borderBlockEndColor = $isVertical ? undefined : borderColor ;
33
- const borderInlineColor = $isVertical ? borderColor : undefined ;
34
-
35
28
const selectedColor = getColor ( { theme, variable : 'foreground.primary' } ) ;
36
29
const foregroundColor = $isSelected ? selectedColor : 'inherit' ;
37
30
const disabledColor = getColor ( { theme, variable : 'foreground.disabled' } ) ;
38
31
39
32
return css `
40
- border-bottom-color : ${ borderBlockEndColor } ;
41
- border-${ theme . rtl ? 'right' : 'left' } -color : ${ borderInlineColor } ;
33
+ border-color : ${ borderColor } ;
42
34
color : ${ foregroundColor } ;
43
35
44
36
& : hover {
You can’t perform that action at this time.
0 commit comments