DEV Community

Discussion on: πŸ‘‰ 5 CSS useful properties I TOTALLY ignored. πŸ€“

Collapse
 
tfantina profile image
Travis Fantina

These are some awesome, I had no idea about disabling the text selection. I'm wondering if hiding a scrollbar is an accessibility issue?

Collapse
 
helleworld_ profile image
DesirΓ© πŸ‘©β€πŸŽ“πŸ‘©β€πŸ«

I've read about it, and it mostly depends.

It may be that your whole content is all visible so hiding scrollbar is not a problem. Also, hiding the scrollbar doesn't mean disabling the functionality, so the scroll-navigation of the page will work normally.

Collapse
 
host510 profile image
Mikhail

Is it possible to cancel scrollbar hiding on mouseover it? I think that would be a solution for Dmitrii Kartashev.

Collapse
 
aurelmegn profile image
Aurel

Same wonder about the disable of the text selection. It can be considered as a serious ux problem imho πŸ€”

Collapse
 
rightdroid profile image
Toomas Jaska

I can give you an example case where this is a must: kiosk systems where the frontend is web tech. Been doing just that for several years, and disabling text-selection, right clicks, making elements click-through are some of the common used practices.

I understand that kiosks are edge cases in general web dev, but also consider Single Page Applications where the UX is more in line with how we use applications rather than how we use webpages (eg left and right clicks act more like in an OS rather than in browser).

Thread Thread
 
aurelmegn profile image
Aurel

Ok, I get it, It all depend on the use case

Collapse
 
bittnkr profile image
bittnkr

Disabling text selection is useful for buttons. It's annoying to select text when trying to click.

Thread Thread
 
helleworld_ profile image
DesirΓ© πŸ‘©β€πŸŽ“πŸ‘©β€πŸ«

Thought exactly the same. I hate double clicking and suddenly the whole page is selected...

Thread Thread
 
aurelmegn profile image
Aurel

Thank you for the clarification

Some comments have been hidden by the post's author - find out more