Skip to content

Commit 2db328a

Browse files
authored
fix(tabs): border styling (#1908)
1 parent e1d1f68 commit 2db328a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

packages/tabs/src/styled/StyledTab.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,16 @@ interface IStyledTabProps {
2121
$isVertical?: boolean;
2222
}
2323

24-
const colorStyles = ({
25-
theme,
26-
$isSelected,
27-
$isVertical
28-
}: IStyledTabProps & ThemeProps<DefaultTheme>) => {
24+
const colorStyles = ({ theme, $isSelected }: IStyledTabProps & ThemeProps<DefaultTheme>) => {
2925
const borderColor = $isSelected
3026
? getColor({ theme, variable: 'border.primaryEmphasis' })
3127
: 'transparent';
32-
const borderBlockEndColor = $isVertical ? undefined : borderColor;
33-
const borderInlineColor = $isVertical ? borderColor : undefined;
34-
3528
const selectedColor = getColor({ theme, variable: 'foreground.primary' });
3629
const foregroundColor = $isSelected ? selectedColor : 'inherit';
3730
const disabledColor = getColor({ theme, variable: 'foreground.disabled' });
3831

3932
return css`
40-
border-bottom-color: ${borderBlockEndColor};
41-
border-${theme.rtl ? 'right' : 'left'}-color: ${borderInlineColor};
33+
border-color: ${borderColor};
4234
color: ${foregroundColor};
4335
4436
&:hover {

0 commit comments

Comments
 (0)