Skip to content

Commit a24916c

Browse files
authored
fix(tabs): allow focus ring to resize based on Tab content (#1911)
1 parent 613c4ec commit a24916c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tabs/src/styled/StyledTab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const colorStyles = ({ theme, $isSelected }: IStyledTabProps & ThemeProps<Defaul
6060

6161
const sizeStyles = ({ theme, $isVertical }: IStyledTabProps & ThemeProps<DefaultTheme>) => {
6262
const borderWidth = theme.borderWidths.md;
63-
const focusHeight = `${theme.space.base * 5}px`;
63+
const focusHeight = `calc(100% - ${theme.space.base * ($isVertical ? 2 : 4)}px);`;
6464
let marginBottom;
6565
let padding;
6666

0 commit comments

Comments
 (0)