Skip to content

Commit

Permalink
removed orientation from NavigableToolbar props
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Jun 27, 2024
1 parent 55eb040 commit 59e5bdb
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export default function NavigableToolbar( {
shouldUseKeyboardFocusShortcut = true,
__experimentalInitialIndex: initialIndex,
__experimentalOnIndexChange: onIndexChange,
orientation = 'horizontal',
...props
} ) {
const toolbarRef = useRef();
Expand All @@ -231,7 +230,6 @@ export default function NavigableToolbar( {
<Toolbar
label={ props[ 'aria-label' ] }
ref={ toolbarRef }
orientation={ orientation }
{ ...props }
>
{ children }
Expand All @@ -240,12 +238,7 @@ export default function NavigableToolbar( {
}

return (
<NavigableMenu
orientation={ orientation }
role="toolbar"
ref={ toolbarRef }
{ ...props }
>
<NavigableMenu role="toolbar" ref={ toolbarRef } { ...props }>
{ children }
</NavigableMenu>
);
Expand Down

0 comments on commit 59e5bdb

Please sign in to comment.