Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
prichodko committed Oct 17, 2024
1 parent e4e2372 commit c99d7d9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const rootStyles = cva({
},
})

const activeTabStyles = cva({
const activeSegmentStyles = cva({
base: 'pointer-events-none absolute inset-y-0.5 left-0 flex-1 rounded-8 transition-all duration-200 ease-out',
variants: {
variant: {
Expand Down Expand Up @@ -113,7 +113,10 @@ export const Root = forwardRef<
}
}}
>
<div className={activeTabStyles({ variant })} style={indicatorStyle} />
<div
className={activeSegmentStyles({ variant })}
style={indicatorStyle}
/>
{children}
</ToggleGroup.Root>
</SegmentedControlContext.Provider>
Expand Down

0 comments on commit c99d7d9

Please sign in to comment.