From 20b48cd1dc0b7d095ecb29374aa85fe95e63fa0f Mon Sep 17 00:00:00 2001 From: rkj-builds Date: Thu, 15 Oct 2026 22:52:28 +0530 Subject: [PATCH] fix(ui): mirror directional chevrons in right-to-left layouts Submenu triggers in Menu, ContextMenu and DrawerMenu, Pagination Previous/Next, and the default Breadcrumb separator draw physical ChevronLeft/ChevronRight icons. In RTL the submenu already opens to the left (MenuSubPopup uses side="inline-end"), yet its chevron still points right; Previous points toward the next page; breadcrumb separators point back toward the root. Add rtl:rotate-180 to these icons, the same treatment Calendar already gives its navigation chevrons. Non-directional icons (ChevronsUpDown, the accordion ChevronDown) and custom separator children are left alone. LTR is unchanged. Co-Authored-By: Claude Opus 5.5 --- apps/ui/public/r/breadcrumb.json | 2 +- apps/ui/public/r/context-menu.json | 2 +- apps/ui/public/r/drawer.json | 2 +- apps/ui/public/r/menu.json | 2 +- apps/ui/public/r/pagination.json | 2 +- apps/ui/registry/default/ui/breadcrumb.tsx | 2 +- apps/ui/registry/default/ui/context-menu.tsx | 2 +- apps/ui/registry/default/ui/drawer.tsx | 2 +- apps/ui/registry/default/ui/menu.tsx | 2 +- apps/ui/registry/default/ui/pagination.tsx | 4 ++-- packages/ui/src/components/breadcrumb.tsx | 2 +- packages/ui/src/components/context-menu.tsx | 2 +- packages/ui/src/components/drawer.tsx | 2 +- packages/ui/src/components/menu.tsx | 2 +- packages/ui/src/components/pagination.tsx | 4 ++-- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/ui/public/r/breadcrumb.json b/apps/ui/public/r/breadcrumb.json index b76b58cc17..3646f7e195 100644 --- a/apps/ui/public/r/breadcrumb.json +++ b/apps/ui/public/r/breadcrumb.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/default/ui/breadcrumb.tsx", - "content": "\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\";\nimport type * as React from \"react\";\nimport { cn } from \"@/registry/default/lib/utils\";\n\nexport function Breadcrumb({\n ...props\n}: React.ComponentProps<\"nav\">): React.ReactElement {\n return