Skip to content

Button data-pressed with scale usage causes data-pressed state to switch between true/false #9977

@alexcarpenter

Description

@alexcarpenter

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

bug.mov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions