Skip to content

Commit 44ca2a2

Browse files
authored
change placement of topbar elements tooltip to bottom-start (#757)
1 parent 325a87d commit 44ca2a2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎src/components/top-bar.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ interface TopBarProps {
1414
onToggleSidebar: () => void;
1515
}
1616

17+
const DEFAULT_TOOLTIP_PLACEMENT = 'bottom-start';
18+
1719
function ToggleSidebar( { onToggleSidebar }: TopBarProps ) {
1820
return (
1921
<div className="app-no-drag-region">
20-
<Tooltip text={ __( 'Toggle sidebar' ) } className="h-6">
22+
<Tooltip
23+
text={ __( 'Toggle sidebar' ) }
24+
className="h-6"
25+
placement={ DEFAULT_TOOLTIP_PLACEMENT }
26+
>
2127
<Button onClick={ onToggleSidebar } variant="icon" aria-label={ __( 'Toggle sidebar' ) }>
2228
<Icon className="text-white" icon={ drawerLeft } size={ 24 } />
2329
</Button>
@@ -44,6 +50,7 @@ function OfflineIndicator() {
4450
</span>
4551
}
4652
className="h-6"
53+
placement={ DEFAULT_TOOLTIP_PLACEMENT }
4754
>
4855
<Button
4956
aria-label={ __( 'Offline indicator' ) }

0 commit comments

Comments
 (0)