130 points · by tosh · 5y ago · 68 comments
The fact you can make any element look and behave the almost the same way – ignoring compatibility and usability issues – is a minefield. We could create a guide like this for basically everything and demonstrate 99% of the web isn't compliant.
no. developers everywhere (but nowhere near "all developers") are forgetting the fundamental advantages of hypertext and are often commanding high salaries despite their staggering ignorance about how to build user interfaces.
we should be trending toward mostly perfect UI paradigms in certain use cases, yet every few months, for no reason at all, user interface designers make huge changes and wreck everything. only rarely do user interfaces get better with such changes.
where is the UI which made large, sensible changes early in its life, favoring smaller and smaller changes as the perfect interface for a particular set of data and actions makes itself obvious? I can't remember the last time I saw one. some games, probably.
I maintain that games probably produce the most usable UIs today, in many ways. they are usually very well thought out, each page usually has a single purpose, and each screen provides all information needed to make a decision or change on a single page, whenever possible. and game UIs are FAST.
I'd love to see a motivated game designer have a go at Service Now or any other contemporary enterprise software, really.
it's very much like web designers are learning less as the study of electronic user interfaces matures. if you judge this by web or mobile user interfaces, you have likely lost all hope that a single semi-sensible design will ever emerge.
designers are very good at making things look good, don't misinterpret me. usability does not seem to be getting better, though.
I welcome counter-examples.
it is often the columns of a database row exposed as html with a tiny bit of client-side validation in JavaScript.
a good UI has pages, panels, windows --whatever-- which have a single purpose and show only what is necessary for a user to do the thing that page/panel/whatever is meant for. show everything that is needed, and nothing more.
it's a very high bar to reach, and very difficult to get right. just avoid making awful mistakes and you'll do fine, I'm sure.
https://m.facebook.com/events/2805322196445083/?event_time_i...
Like seriously. It's almost like someone learned HTML/HTTP best practices, then did the exact opposite.
Cool URIs are about permanence. Reworking your internal file-structure should not break existing URIs. [0]
Clean URLs are about avoiding leaking implementation details into the URL, e.g. .php, and also avoiding excessive use of query strings. [1]
Maybe developers should lean into just leaving the native styles, but it can look bad and present its own problems in tightly styled mobile sites or apps.
I might propose a better solution is expanding accessibly, aria, etc so we can make modern sites & elements more accessible.
The concept of what a website is has changed a LOT.
I don't think we can (and personally don't want to) stop the train towards expanding custom elements, components, intense dom stuff.
So instead we should prioritize making it more accessible.
Make up your own mind where you point it when it is loaded.
If you choose your own foot, that is your choice!
If it is supposed to be a meaningful link - be it internal or external - use a direct anchor element with an href. Styling it however you like shouldn't hurt.
Otherwise, for any other interactions use a <button> element
<applet code="button.class" height="60" width="240">
<param name="button" value="Yea or nay?">
<b>Sorry, you need Java to press this button.</b>
</applet>
I had some buttons like that back in the day, with animations, sound effects and all, geocities-esque. The computer almost grinded to a halt loading it, but pre-teen me felt it was worth it.This seems a bit unfair to single out given that they gave equal styles to all the buttons. Why didn't they include `cursor: default` so they all look exactly the same but function slightly differently?
Its appearance doesn't change as much as it might because it uses nested tables for layout (a Nineties-era practice) and deprecated properties like bgcolor but even without those choices it could still be usable.
[0] I'm talking mid-late nineties here. I don't know, off the top of my head, what level of CSS support or style-in-html support there was, I'm just talking about very hazy memories of what they looked like.
As I was building it, I'd constantly check it with CSS off in order to make sure it had a reasonable flow for folks using screen readers.
www.ft.io if you're interested.
If you get a commercial email and the content has graphic borders around the content, check the source and you'll probably see a table. Also emails with text content in columns.
The page repeatedly mentions accessibility characteristics, it just doesn't call them all out as such.
> Not keyboard focusable
> Correct button role
> correct key events by default
> No accessible name
"Shows wrong cursor on hover" is arguably also about an accessibility characteristic.
Switching markup completely is a larger effort than adding tabindex and role and the latter still provides a benefit.
It's a button with all the properties of an image. Haven't used it in many years but it's still around.
Thanks for making this and illustrating all the cases and variations of a problem, consider making a whole site about these accessibility problems
Furthermore anchors have awesome features such as being able to copy the destination or open the link in a new tab. If the target isn't actually a real location using anchors can be confusing.
In any sufficiently complex UI, you really do end up needing a wide variety of button treatments, depending on the context, hierarchy, etc