Skip to content

Commit aa52014

Browse files
committed
remove boxwithfallback from ActionList/List
1 parent 437dd85 commit aa52014

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
export const List = React.forwardRef<HTMLUListElement, ActionListProps>(
1514
(
@@ -58,8 +57,7 @@ export const List = React.forwardRef<HTMLUListElement, ActionListProps>(
5857
}}
5958
>
6059
{slots.heading}
61-
<BoxWithFallback
62-
as="ul"
60+
<ul
6361
className={clsx(classes.ActionList, className)}
6462
role={listRole}
6563
aria-labelledby={ariaLabelledBy}
@@ -69,7 +67,7 @@ export const List = React.forwardRef<HTMLUListElement, ActionListProps>(
6967
{...props}
7068
>
7169
{childrenWithoutSlots}
72-
</BoxWithFallback>
70+
</ul>
7371
</ListContext.Provider>
7472
)
7573
},

0 commit comments

Comments
 (0)