Skip to content

Commit

Permalink
fix: add RTL support to the avatar group component
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbadri committed Mar 10, 2024
1 parent 2894aec commit 21d5b83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-paws-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/avatar": patch
---

Add RTL support to the avatar group component
4 changes: 2 additions & 2 deletions packages/core/theme/src/components/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ const avatar = tv({
isInGroup: {
true: {
base: [
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
"data-[focus-visible=true]:-translate-x-3",
"-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform",
"data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3",
],
},
},
Expand Down

0 comments on commit 21d5b83

Please sign in to comment.