Skip to content

Commit 7aa6265

Browse files
authored
remove z-index from SegmentedControl text (#7355)
1 parent 7e834a9 commit 7aa6265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/s2/src/SegmentedControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function SegmentedControlItem(props: SegmentedControlItemProps, ref: FocusableRe
268268
[RACTextContext, {slots: {[DEFAULT_SLOT]: {}}}],
269269
[TextContext, {styles: style({order: 1, truncate: true})}]
270270
]}>
271-
<div ref={divRef} style={pressScale(divRef)({isPressed})} className={style({zIndex: 1, display: 'flex', gap: 'text-to-visual', transition: 'default', alignItems: 'center', minWidth: 0})}>
271+
<div ref={divRef} style={pressScale(divRef)({isPressed})} className={style({display: 'flex', gap: 'text-to-visual', transition: 'default', alignItems: 'center', minWidth: 0})}>
272272
{typeof props.children === 'string' ? <Text>{props.children}</Text> : props.children}
273273
</div>
274274
</Provider>

0 commit comments

Comments
 (0)