Skip to content

Commit 5091481

Browse files
committed
re-remove sx and BoxWithFallback from ActionList/Item.tsx
1 parent 82719ab commit 5091481

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/react/src/ActionList/Item.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {invariant} from '../utils/invariant'
1515
import VisuallyHidden from '../_VisuallyHidden'
1616
import classes from './ActionList.module.css'
1717
import {clsx} from 'clsx'
18-
import {BoxWithFallback} from '../internal/components/BoxWithFallback'
1918
import {fixedForwardRef} from '../utils/modern-polymorphic'
2019

2120
type ActionListSubItemProps = {
@@ -57,7 +56,6 @@ const UnwrappedItem = <As extends React.ElementType = 'li'>(
5756
selected = undefined,
5857
active = false,
5958
onSelect: onSelectUser,
60-
sx: sxProp,
6159
id,
6260
role,
6361
loading,
@@ -246,10 +244,8 @@ const UnwrappedItem = <As extends React.ElementType = 'li'>(
246244
trailingVisualId,
247245
}}
248246
>
249-
<BoxWithFallback
247+
<li
250248
{...containerProps}
251-
as="li"
252-
sx={sxProp}
253249
ref={listSemantics ? forwardedRef : null}
254250
data-variant={variant === 'danger' ? variant : undefined}
255251
data-active={active ? true : undefined}
@@ -313,7 +309,7 @@ const UnwrappedItem = <As extends React.ElementType = 'li'>(
313309
</ItemWrapper>
314310
{!inactive && !loading && !menuContext && Boolean(slots.trailingAction) && slots.trailingAction}
315311
{slots.subItem}
316-
</BoxWithFallback>
312+
</li>
317313
</ItemContext.Provider>
318314
)
319315
}

0 commit comments

Comments
 (0)