Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-select: none isn't being applied through CSS style (must add manually to every element) #3424

Open
Andrew15-5 opened this issue Dec 21, 2024 · 0 comments

Comments

@Andrew15-5
Copy link
Contributor

Problem

I tried adding

input[typ="button"], button {
  user-select: none;
}

to main.css, but it did not remove text selection even after manual rebuild. But it does work if I do:

input[typ="button"], button {
  color: red;
}

So it seems that the issue is with that particular property.

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

Text isn't selectable for the specified elements.

Screenshots

Environment:

  • Dioxus version: v0.6.1
  • Rust version: rustc 1.83.0-nightly (fb4aebddd 2024-09-30)
  • OS info: Pop!_OS 22.04
  • App platform: desktop

Questionnaire

I'm interested in fixing this myself but don't know where to start.
I don't have time to fix this right now, but maybe later.

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

No branches or pull requests

1 participant