5 ms·
Not every text in a user interface is supposed to be selectable. Can you select the text on your buttons, your tabs, your dropdowns? Of course not, because it d
by gridlockd 7y ago
Not every text in a user interface is supposed to be selectable. Can you select the text on your buttons, your tabs, your dropdowns? Of course not, because it doesn't make sense.
If you think it shouldn't be possible to develop user interfaces that rival the desktop inside the browser, then just say so. If you merely believe existing web standards make this possible without "hacks" like "user-select:none", then you are mistaken.
By the way, I'm a "read with selection" guy myself and I find this behavior on paragraphs of text unacceptable. On the other hand, none of the text on that website is worth reading anyway.
- Soft 7y agoI don't think there are that many situations where it is actually productive to prevent user from selecting and copying text even if it's just part of the UI. To focus on your example, copying user interface text might be useful for users who are not sufficiently proficient in the language that the app/website is written in and would like to copy the text into something like Google Translate. This is especially a problem with many mobile apps that prevent selecting text.
- SAI_Peregrinus 7y agoThe worst bit is applications that prevent copying error messages, because they prevent copying all UI text. And then use complicated error codes. This makes searching for the error message/code excessively difficult!
- recursive 7y agoI don't think it's that rare to have a UI element that's intended to be draggable and sometimes contains text.
- gridlockd 7y agoIf there's even one important situation where it is necessary to disable text selection, then disabling text selection must be supported. I gave you several examples of these. The text for many UI elements isn't supposed to be selectable, because it interferes with user interaction. Your off-chance example where somebody is trying to copy-paste the text for translation because the application is in a foreign language is subordinate to this. Good UX is about choosing the right tradeoffs between functionality and usability.
- GuiA 7y ago> Not every text in a user interface is supposed to be selectable. Can you select the text on your buttons, your tabs, your dropdowns? Of course not, because it doesn't make sense. It would make sense, and all text in a user interface should be user selectable and offer the same behaviors. Maybe you need to copy and paste a lengthy error message. Maybe there’s a word you don’t understand you want to look up in a dictionary. Maybe the interface isn’t in your native language and you want to translate it. The fact that most mainstream computing environments don’t offer this in 2019 doesn’t mean it’s the right thing to do, rather that our systems have regressed in some (many?) areas when it comes to usability.
- gridlockd 7y ago> It would make sense, and all text in a user interface should be user selectable and offer the same behaviors. How would you know? You have never used such a system because it doesn't exist, how do you know it's better? If you had ever implemented something like a drag and drop UI, a context menu, or even a a simple button using plain old HTML, you would've immediately noticed that selectable text interferes with user interaction. It's the first thing you disable and it's the reason why "user-select:none" must exist.
- GuiA 7y ago> How would you know? You have never used such a system because it doesn't exist I have, it does, it's called Oberon, it was glorious. Copying text from UI elements was also never an issue for me in GTK2 (can't speak for 3, haven't used it much), it was great (although I admit I don't know if there were a few places in the system where I couldn't copy text, it may not have been 100% the case). When I'm working in terminal apps (more often than you can likely imagine) on Linux I can also expect to copy text everywhere, it's great. I'd encourage you to use a diversity of computing systems, it'll broaden your perspective and imagination and sense of possibilities :)
- gridlockd 7y agoPardon my ignorance, I assumed we were talking about actual GUIs, not (glorified) text interfaces. I have used text interfaces, but they are inferior for most users and many types of applications. > I'd encourage you to use a diversity of computing systems, it'll broaden your perspective and imagination and sense of possibilities :) I suggest the same to you, but at the application level, not at the "computing system" level. There are a lot of possibilities with graphical user interfaces that aren't limited to text.
- Guest0918231 7y ago> Can you select the text on your buttons, your tabs, your dropdowns Usually it's possible by just starting the selection beside the button and dragging across. For example, you can select a navigation button on HN easily this way, along with most sites. I use this all the time when I'm reading about products and want to copy the product name or model number, but it's part of a breadcrumb navigation. It would actually be nice if there was a browser shortcut, where if I hold "s" I can disable opening links during that time and select buttons like normal text.