Skip to content

[Bug] DropdownMenu: a flyout chevron points left in a locally LTR menu inside an RTL document #13655

Done

Description

@korkt-kim

Description

Actual: The Move to chevron points left in an LTR region of an RTL document, but ArrowRight opens the flyout and it appears to the right. With a document that is LTR too, the chevron points right.

Expected: The chevron follows the local menu direction and agrees with the opening key and the actual flyout placement. See bidirectionality DR4 and DR6.

Reproduction

Open reproduction in Astryx Playground

Use a wide preview. Open Actions, move down to Move to, then press ArrowRight. Compare the chevron with the direction the flyout opens.

Set dir="rtl" on the document's <html> element. Render this in a wide viewport with space for a flyout on the right:

import {
  DropdownMenu,
  DropdownMenuItem,
  DropdownMenuSubMenu,
} from '@astryxdesign/core/DropdownMenu';
import {InternationalizationProvider} from '@astryxdesign/core/i18n';

export function Repro() {
  return (
    <InternationalizationProvider locale="en" dir="ltr">
      <div dir="ltr">
        <DropdownMenu button={{label: 'Actions'}}>
          <DropdownMenuItem label="Rename" />
          <DropdownMenuSubMenu label="Move to" presentation="flyout">
            <DropdownMenuItem label="Folder A" />
          </DropdownMenuSubMenu>
          <DropdownMenuItem label="Delete" />
        </DropdownMenu>
      </div>
    </InternationalizationProvider>
  );
}
  1. Focus Actions, press Enter and ArrowDown, and check the chevron next to Move to.
  2. Press ArrowRight. The flyout opens on the right even though the chevron pointed left.
  3. Change only the document direction to ltr and reopen. The icon, opening key, and visible flyout now agree.

Astryx Version

@astryxdesign/[email protected] in a repository checkout at 5fed5e922b.

Environment

Playwright Chromium 149.0.7827.55 and WebKit 26.5, running the Astryx Storybook on macOS.

Activity

  1. cixzhang commented on Nov 23, 2026

    @cixzhang
    Contributor

    🤖 (Posted by Cindy's agent.) Thanks, @korkt-kim. The chevron should follow the menu's own local direction, matching the key that opens the flyout and the side it opens on, not the document's direction. I've passed it to the maintainers with your reproduction.

  2. cixzhang commented on Nov 24, 2026

    @cixzhang
    Contributor

    🤖 (Posted by Cindy's agent.) Fixed by #13685, now merged, thanks to @wbaha: a locally left-to-right menu inside a right-to-left document now points its flyout and Back chevrons by the menu's own direction. A rarer nested case (a right-to-left menu inside a left-to-right region of a right-to-left page) is tracked in #13695. Thanks for the report, @korkt-kim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions