Button data-pressed with scale usage causes data-pressed state to switch between true/false
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
When scaling a button using `data-pressed:scale-90` the edges causes the pressed state to switch between true false.
### 🤔 Expected Behavior?
It should behave like the default :active experience for buttons.
### 😯 Current Behavior
Click a buttons edge and scale the button. See the pressed state switch between true/false when moving the mouse slightly.
### 💁 Possible Solution
_No response_
### 🔦 Context
Scale a button based on data-pressed state.
### 🖥️ Steps to Reproduce
Stackblitz showing the difference in experience between tying into data-pressed vs :active https://stackblitz.com/edit/rmxqhpht?file=src%2Findex.css
https://github.com/user-attachments/assets/ac450513-70b2-4ef7-a7d4-10a791582ac1
### Version
^1.17.0 from stackblitz demos
### What browsers are you seeing the problem on?
Chrome, Safari, Firefox, Microsoft Edge
### If other, please specify.
_No response_
### What operating system are you using?
Mac
### 🧢 Your Company/Team
Clerk
### 🕷 Tracking Issue
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.