Don't put aria-label on generic elements like divs

matuzo.at

69 points by cyanbane 4 days ago


Xirdus - 5 hours ago

Speaking of WebAccessibilityFails, the article overflows to the left without a scrollbar when viewed on a phone narrower than an iPhone, making the first word of every line unreadable (and there are a lot of lines on a phone narrower than an iPhone).

injidup - 4 hours ago

The irony of a tool designed to enforce usability and discoverability that which itself is unusable and undiscoverable.

542458 - 4 hours ago

While web accessibility is important and something we should be investing in, I do feel that the vendors of accessibility tools are somewhat to blame here in how friggin difficult it is to actually make something accessible. Quirks and features are wildly inconsistent across tools, and feature uptake is much slower than it should be. For example, creating an accessible dialog shouldn’t be a multi-page essay to explain, it should just be “use the <dialog> element.” - but the a11y tools are so inconsistent that you can’t just do the standards compliant thing. And don’t get me started on roving tabindex techniques (for things like data tables), which are at best an ugly hack that the entire industry has collectively decided “eh, it’s good enough”.

Even what's described in the article basically boils down to "You can label things, but not generic things (for some reason?), unless that generic thing is a <section> or has a popover attr in which case it magically works." And this isn't even one of the "hard" accessibility things!

goda90 - 5 hours ago

Left part of the page is cut off and only accessible with reader mode on IronFox for Android. Talk about #WebAccessibilityFails

chrismorgan - 3 hours ago

Two days ago, in https://news.ycombinator.com/item?id=48248285 I commented on exactly this thing, a <dl aria-label=…> (dl has “no corresponding role”).

paulryanrogers - 5 hours ago

Zoom bug reading this article. Perhaps it's just my Firefox?

Still, a nice concise read if you can get it

DocTomoe - 39 minutes ago

Ever since the EU has started to mandate web accessibility compliance - without defining what exactly needs to be done to be compliant, the only safe, lawyer-resistant way is to put aria-labels on absolutely everything.

It sucks, and arguably has the opposite effect, but this came from the same people who thought cookie banners were a good solution to anything, so ... what did we expect?

jrochkind1 - 3 hours ago

today i learned there are browser built-in popovers now.

recursivedoubts - 4 hours ago

No one has done more damage to web accessibility than the web accessibility industry. Arcane rules like this make any sane developer throw up their hands in disgust.

I think the accessibility consultants like this state of affairs: they can threaten more lawsuits and extract more in consulting fees.

micromacrofoot - an hour ago

it's fine as long as you add an appropriate role

htx80nerd - 2 hours ago

why is this even a post - this is common sense not 'hacker news'

nailer - 4 hours ago

Avoid aria tags. The spec is unworkable (see this document) the browsers made by the disability industry extract vast quantities of money from disabled people with little effectiveness because they try and boil the ocean which unsurprisingly is ineffective.

Support efforts for computer vision based browsers, MCP and APIs.