Skip to content

Commit

Permalink
feat: added RTL support to accordion component
Browse files Browse the repository at this point in the history
  • Loading branch information
jguddas committed Oct 1, 2023
1 parent 9d4c7ed commit 9f47933
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/theme/src/components/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const accordionItem = tv({
],
startContent: "flex-shrink-0",
indicator: "text-default-400",
titleWrapper: "flex-1 flex flex-col text-left",
titleWrapper: "flex-1 flex flex-col text-start",
title: "text-foreground text-large",
subtitle: "text-small text-foreground-500 font-normal",
content: "py-2",
Expand Down Expand Up @@ -109,7 +109,8 @@ const accordionItem = tv({
indicator: "transition-none",
},
false: {
indicator: "rotate-0 data-[open=true]:-rotate-90",
indicator:
"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90",
},
},
},
Expand Down

0 comments on commit 9f47933

Please sign in to comment.