Skip to content

Commit fa08f12

Browse files
committed
re-remove sx and BoxWithFallback from ActionList/List.tsx
1 parent 5091481 commit fa08f12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react/src/ActionList/List.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {useProvidedRefOrCreate} from '../hooks'
99
import {FocusKeys, useFocusZone} from '../hooks/useFocusZone'
1010
import {clsx} from 'clsx'
1111
import classes from './ActionList.module.css'
12-
import {BoxWithFallback} from '../internal/components/BoxWithFallback'
1312

1413
const UnwrappedList = <As extends React.ElementType = 'ul'>(
1514
props: ActionListProps<As>,
@@ -67,8 +66,7 @@ const UnwrappedList = <As extends React.ElementType = 'ul'>(
6766
}}
6867
>
6968
{slots.heading}
70-
<BoxWithFallback
71-
as={Component}
69+
<Component
7270
className={clsx(classes.ActionList, className)}
7371
role={listRole}
7472
aria-labelledby={ariaLabelledBy}
@@ -78,7 +76,7 @@ const UnwrappedList = <As extends React.ElementType = 'ul'>(
7876
{...restProps}
7977
>
8078
{childrenWithoutSlots}
81-
</BoxWithFallback>
79+
</Component>
8280
</ListContext.Provider>
8381
)
8482
}

0 commit comments

Comments
 (0)