-
Notifications
You must be signed in to change notification settings - Fork 31
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
Preventing text selection on Label component #1925
Comments
Hey @seahindeniz , I think that labels' text should be selectable as it's mostly non interactive element which might be placed inide text content (it's inline element) and carries some information that user may wish to copy. Some design systems disable user select on "actionable" components which are also block elements to prevent selecting unnecessary elements placed around commonly copied content (eg. buttons in text editors). The buttons could definitely be subjected to such a discussion, but this is a separate topic requiring planned action and cooperation of a designers. What is your use case for that proposal? |
Thanks for example @seahindeniz ! I think there are different areas to discuss.
Having said that I think you made a really good point and definitely I will keep an eye on that topic but I would like to cover it in a more organic way that will also allow us to revise other "actionable" components. For now my suggestion would be to use some utility class on specific components which would keep text selection from happening (if that is the requirement). |
Hi
The Label components text element is selectable right now. If this is not intentional, what do you think about adding
user-select: none;
to Label's primary element to prevent selection?The text was updated successfully, but these errors were encountered: