Skip to content

Commit 93f8f08

Browse files
committed
fix(tabs): list scrollView rounded issue
1 parent 02816d4 commit 93f8f08

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/components/tabs/tabs.styles.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const list = tv({
1010
base: 'self-start flex-row items-center gap-1',
1111
variants: {
1212
variant: {
13-
pill: 'rounded-full bg-default p-1',
13+
pill: 'rounded-full bg-default p-[3px]',
1414
line: 'border-b border-border',
1515
},
1616
},
@@ -21,6 +21,15 @@ const list = tv({
2121

2222
const scrollView = tv({
2323
base: '',
24+
variants: {
25+
variant: {
26+
pill: 'rounded-full',
27+
line: '',
28+
},
29+
},
30+
defaultVariants: {
31+
variant: 'pill',
32+
},
2433
});
2534

2635
const scrollViewContentContainer = tv({

src/components/tabs/tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const TabsScrollView = forwardRef<ScrollView, TabsScrollViewProps>(
158158
const { measurements, variant } = useTabsMeasurements();
159159
const { width: screenWidth } = useWindowDimensions();
160160

161-
const scrollViewStyles = tabsStyles.scrollView({ className });
161+
const scrollViewStyles = tabsStyles.scrollView({ variant, className });
162162
const contentContainerStyles = tabsStyles.scrollViewContentContainer({
163163
variant,
164164
className: contentContainerClassName,

0 commit comments

Comments
 (0)