Skip to content

Commit

Permalink
Site editor navigation: Use chevron left in RTL mode (#51588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Walbø Johnsgård authored Jun 17, 2023
1 parent c8d7e69 commit bc7ac22
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import {
__experimentalHStack as HStack,
FlexBlock,
} from '@wordpress/components';
import { chevronRightSmall, Icon } from '@wordpress/icons';
import { isRTL } from '@wordpress/i18n';
import { chevronRightSmall, chevronLeftSmall, Icon } from '@wordpress/icons';

export default function SidebarNavigationItem( {
className,
Expand Down Expand Up @@ -39,7 +40,7 @@ export default function SidebarNavigationItem( {
<FlexBlock>{ children }</FlexBlock>
{ withChevron && (
<Icon
icon={ chevronRightSmall }
icon={ isRTL() ? chevronLeftSmall : chevronRightSmall }
className="edit-site-sidebar-navigation-item__drilldown-indicator"
size={ 24 }
/>
Expand Down

1 comment on commit bc7ac22

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in bc7ac22.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5297625732
📝 Reported issues:

Please sign in to comment.