3 ms·
Great. Really great. /s Let me explain the /s: alert/prompt/confirm have one very huge advantage: they're native. Which means: screenreaders, tab, escape and
by mschuster91 10y ago
Great. Really great. /s
Let me explain the /s:
alert/prompt/confirm have one very huge advantage: they're native. Which means: screenreaders, tab, escape and everything I expect from the OS are working consistently across sites.
Now people will have to implement the wheel all over again - everyone will do it a bit different, 90% won't give a sh.t if tab works and 99% won't care if Esc works. It will be the fake-scrollbar-styling once again.
Stop messing around and replacing OS-native stuff with lowest-grade JS bullsh.t. Thanks!
- comex 10y agoEsc is handled automatically by the suggested replacement <dialog>, although only Chrome has implemented <dialog> so far. With respect to Tab, doesn't that problem already exist in all other (non-dialog) web content? If a webpage's dialogs are accessible but everything else is broken, I feel like you're going to have a bad time regardless… Though I suppose that if you're not impaired and typically use the mouse to click buttons, but are used to using the keyboard for dialogs, this could be an annoyance.
- mschuster91 10y agoThe problem is most people will skip over the "make it feel really native" part, except when they're forced by law (ADA comes to my mind). It costs a lot to implement right across browsers and even more to properly test. To make it worse: Windoes has different native UI than OS X, and on linux it entirely depends on the desktop environment and window manager - there is no way to "get it native" there, so it is a loss of consistency. Oh, and JS cr.p also does not know about stuff like OS color schemes, DPI settings, OS-level-set hotkeys etc., so all this will be lost.