Skip to content

Commit

Permalink
Adjust border-radius based on scaling factor.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGuardiola committed Oct 2, 2024
1 parent 517950e commit a708e6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/components/src/tabs/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ export const TabListWrapper = styled.div`
}
}
&[aria-orientation='vertical']::before {
border-radius: ${ CONFIG.radiusSmall };
/* Adjusting the border radius to match the scaling in the y axis. */
border-radius: ${ CONFIG.radiusSmall } / calc(
${ CONFIG.radiusSmall } /
(
var( --indicator-height, 0 ) /
var( --antialiasing-factor )
)
);
top: 0
left: 0;
width: 100%;
Expand Down

0 comments on commit a708e6b

Please sign in to comment.