Skip to content

Add -webkit-user-select: none - #2745

Merged
calebporzio merged 2 commits into
mainfrom
filip/fix-user-select-safari
Aug 17, 2026
Merged

Add -webkit-user-select: none#2745
calebporzio merged 2 commits into
mainfrom
filip/fix-user-select-safari

Conversation

@ganyicz

@ganyicz ganyicz commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

The problem

Safari doesn't support user-select: none without a -webkit prefix.

In #2738 we had to add select-none class to force the default cursor on toggle, despite the ui-switch already applying user-select: none in the default css rules. The reason was that the bug was limited to Safari. Because the select-none tailwind class applies the rule with the webkit prefix, this fixed the issue. However the fix really belongs to the css file.

The solution

  1. Add -webkit-user-select: none to all default CSS rules where we have user-select: none
  2. Remove select-none from toggle

@calebporzio

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Co-authored-by: calebporzio <3670578+calebporzio@users.noreply.github.com>

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved in 14c19a3.

Copilot AI requested a review from calebporzio August 17, 2026 17:10
@calebporzio
calebporzio merged commit 9536f0e into main Aug 17, 2026
@calebporzio
calebporzio deleted the filip/fix-user-select-safari branch August 17, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants