Skip to content

Commit

Permalink
refactor(theme): replace left & right by start & end to support RTL (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong authored Feb 5, 2025
1 parent f7c2be0 commit 3d5548e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-goats-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heroui/theme": patch
---

use start & end instead of left & right to support RTL (#4007)
8 changes: 4 additions & 4 deletions packages/core/theme/src/components/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ const calendar = tv({
// "data-[selected=true]:data-[range-selection=true]:bg-transparent",

// start (pseudo)
"data-[range-start=true]:before:rounded-l-full",
"data-[selection-start=true]:before:rounded-l-full",
"data-[range-start=true]:before:rounded-s-full",
"data-[selection-start=true]:before:rounded-s-full",

// end (pseudo)
"data-[range-end=true]:before:rounded-r-full",
"data-[selection-end=true]:before:rounded-r-full",
"data-[range-end=true]:before:rounded-e-full",
"data-[selection-end=true]:before:rounded-e-full",

// start (selected)
"data-[selected=true]:data-[selection-start=true]:data-[range-selection=true]:rounded-full",
Expand Down

0 comments on commit 3d5548e

Please sign in to comment.