fix(button): fixing the icon shift in safari (#5051)

* fix: fixing the issue for icon shift in safari

* chore: changing the solution to be cross browser compatible
This commit is contained in:
Maharshi Alpesh 2025-03-28 19:41:17 +05:30 committed by GitHub
parent a758228136
commit 9247f74233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/button": patch
---
Fix for the button icon shift in safari(#4133).

View File

@ -37,7 +37,7 @@ const button = tv({
"subpixel-antialiased",
"overflow-hidden",
"tap-highlight-transparent",
"data-[pressed=true]:scale-[0.97]",
"transform-gpu data-[pressed=true]:scale-[0.97]",
// focus ring
...dataFocusVisibleClasses,
],