News for hackers. Stuff that matters.
Re:You don't need a modal window by korijn on Wednesday May 24, 2023 @08:01AM (#36056814)
So what about people with screen readers? They don't (middle) click or type at all. Does your UX account for them too? If so: great. Usually, it's overlooked. I think that's the point of this article. Standard browser controls are all 100% accessible by default.
Re:You don't need a modal window by aendruk on Wednesday May 24, 2023 @08:15AM (#36056948)
Clearly “middle-click” was just an example of how to open a link in new tab. Screen readers don’t have a way to do that?
Re:You don't need a modal window by pqb on Wednesday May 24, 2023 @08:46AM (#36057245)
No, at least not in VoiceOver, which I use. In my experience, screen readers/assistants don't mimic the left/middle/right click of the mouse [0]. You often get two options: left click and double click [1]. There is also a right-click menu (control space), but unless it is based on a system-native UI, it is likely to be completely unusable for SR.

[0]: It is even easier to not use a mouse, when you are using an assistant. With a keyboard and VO you can resize, drag and drop and do many more activities.

[1]: https://support.apple.com/en-us/guide/voiceover/mchlp2746/10...

Re:You don't need a modal window by aendruk on Wednesday May 24, 2023 @09:01AM (#36057403)
I don’t have a Mac to try it but a quick web search suggests Command+Return.
Re:You don't need a modal window by pqb on Wednesday May 24, 2023 @09:27AM (#36057718)
Uh, that's interesting, but it does not work for me :(

AFAIK, VO+Command+Return can be used to select multiple things, not to click. For example, in the file viewer (Finder.app, similar to Nautilus/explorer.exe), it is similar to pressing Control (win/linux) and the left mouse button when the cursor is over a file to add it to the selection.

Re:You don't need a modal window by extra88 on Monday May 29, 2023 @12:04PM (#36115202)
VoiceOver is most often, and best, paired with Safari.

By default, Command-Return, no VO key, opens a focused link in a new tab behind the current tab. It's not a VoiceOver-specific keyboard command. It also works in Firefox and Chrome.

However, by default, Safari does not focus links when pressing the Tab key, you need to go to Settings > Advanced and check "Press Tab to highlight each item on a webpage" first.

Re:You don't need a modal window by pqb on Thursday June 01, 2023 @08:49AM (#36150378)
Thanks, I didn't know about that.
Re:You don't need a modal window by kwhitefoot on Wednesday May 24, 2023 @12:15PM (#36060237)
Even if a screen reader does, someone using a touch screen usually doesn't. If you step out of your bubble for a moment you'll notice that quite a lot of non-technical people no longer have computers, they do everything on a mobile device of some sort which typically does not have a mouse or keyboard.
Re:You don't need a modal window by aendruk on Wednesday May 24, 2023 @12:58PM (#36060928)
On a touch screen it’s typically something like long press -> Open in New Tab. Or you’re saying that’s beyond most people?
Re:You don't need a modal window by kwhitefoot on Saturday May 27, 2023 @05:12PM (#36098368)
I'm quite confident that you wouldn't have to interview many people to discover that even though it is not beyond people that it is unknown to many.

I know several non-technical people who find the distinction between window and tab difficult to manage for instance. As well as people who have had Android mobiles for years and still don't understand those three little buttons at the bottom of the screen: back, home, 'task' list.

Re:You don't need a modal window by aendruk on Sunday May 28, 2023 @08:19PM (#36109157)
This is the conversation I think we’ve just had:

  d: Represent resources only as standard hypertext documents.
  h: Progressively enhance with nonstandard features. The traditional
     affordances of hypertext will remain available—for example,
     middle clicking to branch browser history.
  k: But screen readers can’t middle click.
  a: Branching is afforded by *some* interface though, right?
  w: Not on touch screens.
  a: Not even by using the touch interface?
  w: Nope. You can’t expect everyone to know how to use it.
So we’ve established that many people are unable to effectively navigate the web using the native features of their web browser. It’s not clear to me how that informs the surrounding debate. Are browsers’ navigation features inadequate? In context that sounds like an argument in favor of websites implementing their own navigation.

Personally I’d prefer us to prioritize building a web of addressable resources rather than applications, and to the extent that our user agents aren’t meeting our needs, improve them rather than work around them.

Re:You don't need a modal window by kwhitefoot on Monday May 29, 2023 @10:25AM (#36114312)
> to the extent that our user agents aren’t meeting our needs, improve them rather than work around them.

Most of us are in no position to improve our user agents only large organizations like Google or Mozilla can do that. In fact calling them user agents is extremely misleading in most cases.

If they were genuinely user agents they would obey the user not the server. They would assist the user to a much greater degree than they do now; for instance there is no native way of saving the rendered page in either Firefox or Chrome so sharing a page is exceptionally difficult if the URL points at a resource that require logging in and also risks that the resource changes before the recipient can read it. One has to install an add on to do that and hope that the author doesn't get bored of maintaining it or piss off the Chrome Store or whatever it is called.

Re:You don't need a modal window by korijn on Thursday May 25, 2023 @01:16PM (#36073397)
It's why I put it in brackets.
Re:You don't need a modal window by aendruk on Thursday May 25, 2023 @04:25PM (#36075725)
So then it’s people with screen readers don’t click or type at all? What’s left, they just use voice commands?
Re:You don't need a modal window by huhtenberg on Wednesday May 24, 2023 @08:17AM (#36056960)
Accessibility support is a matter of priorities for a given project.

If 99.99% of your target audience is not using screen readers, then you need to decide if worsening their experience to accommodate the other 0.01% aligns with your project plans and goals.

In some cases it will, in some it won't. It depends.

Re:You don't need a modal window by duncan-donuts on Wednesday May 24, 2023 @08:37AM (#36057165)
Accessibility is so much more than screen readers.
Re:You don't need a modal window by ToruiDev on Wednesday May 24, 2023 @08:33AM (#36057116)
There's also cases where you're legally required to support them

E.g. ADA (Americans with disabilities act) website compliance which seems to be required when the employer has more than 15 employees

Re:You don't need a modal window by recursive on Wednesday May 24, 2023 @09:36AM (#36057840)
My employer has more than that, and is not subject to it. I don't know exactly why, but I think has something to do with availability to public? Our users are employees of our customers.
Re:You don't need a modal window by gumby on Wednesday May 24, 2023 @08:45AM (#36057237)
First, in the US accessibility support is the law. While it is far from well* enforced, your simple formulation of “priorities” obscures the fact that the team is prioritizing convenience vs law. Yes we all do this when deciding, say, how fast to drive. But we know when we are speeding.

Second: in physical space: ramps are required to be implemented in a way that supports wheelchair use. Yet they create alternative affordances: I have appreciated them when when I have broken a limb, for example, even though they weren’t “intended” for that. They are clearly mostly used by delivery people; not only does it make deliveries easier, but reduces incidents of injuries, strains etc.

The same applies to web sites: cleaner affordances allow people to use the page in ways not imagined by the designer.

* By imperfectly I don’t mean “not hyper vigilantly”, I mean that it is often observed in the breach; sometimes it can have negative effects (consider the Berkeley videos case), etc. But that is much better than no attempt at all.

Re:You don't need a modal window by ralmidani on Wednesday May 24, 2023 @09:32AM (#36057784)
Not your main point, but in the Berkeley videos case I blame, well, Berkeley. They could have taken the videos offline temporarily, worked on transcribing them, and brought them back gradually (they have the resources or, if they’re too cheap, could have resorted to crowdsourcing). Taking that wealth of knowledge offline so abruptly, and with no plan to ever bring it back, is really a disgrace. The videos live on thanks to Archive Team, but they’re not as easy to discover.
Re:You don't need a modal window by recursive on Wednesday May 24, 2023 @09:34AM (#36057805)
> First, in the US accessibility support is the law

Only for governments or businesses that are open to the public. I've rarely worked on those type of websites. But plenty of B2B stuff. There's a ton of it.

Re:You don't need a modal window by 8organicbits on Wednesday May 24, 2023 @08:55AM (#36057336)
I know 99.99% is just an example, but that's a pretty high estimate. I'm seeing estimates for vision impairment at 2% and color blindness at 4% [1] of the US population.

I'm also reminded that people use screen readers or other assistive tech for non-disability reasons. Like increasing font size when tired or when using a website in a foreign language. Plus, building assessible websites may be required by law, such as ADA requirements in the US.

[1] https://ux.stackexchange.com/questions/57340/percentage-of-s...

Re:You don't need a modal window by mschuster91 on Wednesday May 24, 2023 @08:55AM (#36057338)
> Accessibility support is a matter of priorities for a given project.

Not any more. In the US this hasn't been the case for years since 2019 [1], and in Europe a similar requirement will take power in 2025 at the latest [2].

There is no choice any more if you cater to either markets: either you're compliant or you can and will get fined to oblivion.

[1] https://www.latimes.com/politics/story/2019-10-07/blind-pers...

[2] https://en.wikipedia.org/wiki/European_Accessibility_Act

Re:You don't need a modal window by hajile on Wednesday May 24, 2023 @10:31AM (#36058666)
That first link doesn't say what you claim it does.

SCOTUS rejected hearing the case and has let the 9th circuit decision stand for now. That means the ruling ONLY applies in areas of the US that fall under the 9th circuit. Further, if SCOTUS chooses to hear the case in the future, they may well overturn the 9th circuit decision.

As they point out in that article, this decision would instantly make hundreds of thousands of business non-compliant and open them up to being destroyed by accessibility lawsuits.

A megacorp will just do the work and write off the expenses.

Small businesses are different. Faced with tens of thousands in expenses, they have two options. The first is that they eliminate their website entirely. This hurts them and almost all of their customers (including disabled people who might have relied on the partially accessible features). The second is to lay off employees to pay for the work. Neither option is very good.

Re:You don't need a modal window by mschuster91 on Wednesday May 24, 2023 @10:57AM (#36059022)
> That means the ruling ONLY applies in areas of the US that fall under the 9th circuit.

Ah, thanks. I'm German, I thought federal court orders were binding for the whole country.

> Small businesses are different.

Actually small businesses are exempt. The EU EEA has a threshold of 10 employees/2 million euros balance, and the US ADA - at least from a quick Google - of 15 employees [1]. If you're hitting either of these thresholds, you're large enough to afford a once-off expense and hell, you should have a couple tens of thousands of dollars in reserve anyway simply because your employees rely on you being able to make payroll even if disaster strikes - even at 10 employees and 3000 dollars per employee in total cost, that's 30k in payroll a month total so you should have 60k in reserve anyway.

For those who don't, well, please don't operate in a way that externalizes costs and risks onto others - no matter if it's disabled people, your employees or your customers.

> Faced with tens of thousands in expenses, they have two options.

A lot of small businesses don't do their own website, they use social media or SaaS providers - Wix, Wordpress, Jimdo, or (for restaurants) Just Eat and their competitors. For them, the SaaS provider does the heavy lifting, and besides: these sites usually don't have much content anyway.

[1] https://www.eeoc.gov/laws/guidance/ada-primer-small-business...

Re:You don't need a modal window by nicbou on Wednesday May 24, 2023 @09:02AM (#36057415)
Unless the law calls for it. I believe that ADA in the US requires websites to be accessible.
Re:You don't need a modal window by DonHopkins on Wednesday May 24, 2023 @09:05AM (#36057443)
Boo! That attitude hurts people, and is against the law for good reasons.

And even if you have no empathy so you don't give a shit about anything unless it affects you directly (in which case UI design isn't for you), then consider that unless you die young or have supernaturally perfect health, you're going to need accessibility features yourself some day, so your lazy anti-accessibility attitude is going to come back and bite you in the ass.

And you're dead wrong that accessibility necessarily worsens the experience for people without disabilities. It's useful for everyone.

Please leave the user interface design to other better educated more compassionate people, and stick to the back-end yourself.

Re:You don't need a modal window by huhtenberg on Wednesday May 24, 2023 @09:28AM (#36057728)
That's a shallow knee-jerk interpretation of what I was actually referring to.

Put my remarks in the context of a startup that has a limited runway and needs to choose between working on something that would appeal, entice and attract the majority of their target user base and trying to accommodate the needs of the fraction of the same. You can "boo" all you want, but their choice will be obvious, as it should be perfectly understandable, even for people from the second group.

> Please leave the user interface design to other better educated more compassionate people, and stick to the back-end yourself.

Ah, a gratuitous personal attack, the best way to strengthen any argument.

Re:You don't need a modal window by DonHopkins on Wednesday May 24, 2023 @09:44AM (#36057963)
Pulling totally bogus statistics out of your ass like "99.99% of your target audience is not using screen readers" is not the best foundation for your dubious argument for using modal dialogs and against supporting accessibility. And your claim that accessibility "worsen[s] their [non-disabled users] experience" is flat out wrong, so it's hard to take you seriously.

And anyway, a lot more people would regularly and happily use screen readers if it weren't for all those badly and lazily designed web sites and user interfaces that use modal dialogs and don't bother supporting accessibility, which make them much less useful and accessible for everyone.

Speaking of context: Even if screen readers or people with disabilities did not exist, there are still many important legitimate reasons not to use modal dialogs, and still many perfectly reasonable alternatives, so your bogus statistical argument for using modal dialogs is still dubious and doesn't address any of those other issues.

https://ddiy.co/web-accessibility-statistics

>Here are the numbers regarding how many people have disabilities that make accessibility features necessary when surfing the internet.

>4.9% of U.S. adults have a vision disability with blindness or serious difficulty seeing even when wearing glasses, requiring screen readers.

>5.7% of U.S. adults are deaf or have serious difficulty hearing.

>10.8% of people with a disability have a cognition disability with serious difficulty concentrating, remembering, or making decisions.

>There are an estimated 300 million people in the world with color vision deficiency which requires color-adjusting tools on sites.

>About 16% of people who use screen readers have multiple disabilities.

>Roughly a quarter of Americans with disabilities (26%) say they have high-speed internet at home, a smartphone, a desktop or laptop computer, and a tablet compared with 44% of those who report not having a disability.

>18% of US adults report that they have a disability, according to this survey, which asked respondents if any “disability, handicap, or chronic disease keeps you from participating fully in work, school, housework, or other activities.”

>Americans with disabilities are three times as likely as those without a disability to say they never go online (15% vs. 5%.)

>By 2050 nearly 2.5 billion people are projected to have some degree of hearing loss and at least 700 million will require hearing rehabilitation.

>By 2060 the number of people 65 or older is expected to double to 98 million.

Another point is that screen readers aren't only useful for blind people. Here's a demo of a screen reader that I implemented for reading the long but amusing catalog object descriptions in The Sims ("Simplifier" demo starts at 3:15), that's useful for kids who aren't good at reading yet (but want to learn while playing a game), and anyone who is too impatient to read all the tiny text on the screen:

Demo of The Sims Transmogrifier, RugOMatic, ShowNTell, Simplifier and Slice City:

https://www.youtube.com/watch?v=Imu1v3GecB8

Also check out the "talking pie menus" and tool palette in X11 SimCity (aka open source Micropolis):

X11 SimCity Demo:

https://www.youtube.com/watch?v=Jvi98wVUmQA

OLPC SimCity Demo:

https://www.youtube.com/watch?v=EpKhh10K-j0

Re:You don't need a modal window by huhtenberg on Wednesday May 24, 2023 @10:23AM (#36058528)
> Pulling totally bogus statistics out of your ass like "99.99% of your target audience

Please make some effort when refuting the arguments of others. See "target audience" in the part that you quoted? That's the keyword.

If one's making an augmented reality app that assists car mechanics in repairs, what would you say be the percentage of screen-reader wielding people there?

> And your claim that accessibility "worsen[s] their [non-disabled users] experience" is flat out wrong

For one, you are taking it out of context. For two, you keep repeating something as if it would make it true.

Here's a little exercise - consider what it would take https://finviz.com/bubbles.ashx page accessible. Then, consider what the target audience here is and ponder the choice of working on things that would benefit said audience (i.e. improving their experience) and refactoring the page to be compatible with screen readers. That's what I was referring to in the original comment. It's all in the context, it depends.

Re:You don't need a modal window by coldtea on Wednesday May 24, 2023 @09:28AM (#36057732)
Speaking about empathy, might want to use some to get his point. He isn't talking about himself. He is talking about a typical software business making business decisions.

If adding support for accessibility delays their product delivery, or raises their costs, it's another tradeoff that might even kill their product. And then it wont be a case of the software not being accessible to those needing those features, but it not being accessible to anybody.

Sure, where the law mandates it, they can always do a half-ass job to be, in name, compliant. But full (or proper) accessibility will be judged in the end like any other feature decision.

You might consider those features essential, but you'd be surprised how many business features get cut to get something out, even more so for an MVP.

If you think those designing most websites and apps people use are made by "more compassionate people" who'd jump on such features out of ethical concerns, you'd be quite off.

Heck, this very website (HN) has a quite bad accessibility track record even considering the average website. Among other things: image elements do not have [alt] attributes, form elements do not have associated labels, links do not have a discernible name.

And this is from a major VC company with tons of resources, and a place where thousands upon thousands of devs frequent.

So, while everybody can get their "morally superior and empathetic" rocks off judging the parent, the reality is more like what's described above. It isn't bad if somebody points to the reality - or to the hypocrisy, if we're to see it ethically.

Re:You don't need a modal window by Cthulhu_ on Wednesday May 24, 2023 @09:13AM (#36057545)
This is, to be blunt, narrow-sighted; most accessibility support is rooted in best practices for every user. Screen readers are only one use case, other things that people don't even consciously think about and take for granted when they use a webpage or app are things like zooming in, focus/reader modes, light/dark modes, performance, print views, copy/pasting content, SEO / searchability, bookmarkability (e.g. headings & anchors in webpages, also used by screen reader users to quickly navigate a page), etc.

99.99% of accessibility things are covered if you just follow normal, established software development practices. Unfortunately, a lot of software developers overcomplicate things, for example by adding modal dialogs to websites. Modals are common and established design patterns in desktop apps, but not so in web and mobile apps. Applying one environment's UX patterns to another is asking for trouble.

Re:You don't need a modal window by dimmke on Wednesday May 24, 2023 @09:30AM (#36057759)
>most accessibility support is rooted in best practices for every user.

This isn't quite true, when you get into things like using aria attributes. I definitely wouldn't put it at 99.99%. And I think a lot of vendors of accessibility software get to skate where others would have their feet held to the fire. They could be doing more to make their software easier to use and for developers to make it accessible.

I used to work as a contractor for the CDC, so I have experience in web development that is held to a higher accessibility standard (we had an actual real person who would verify our work and certify that it was accessible.)

Some things that come to mind are color contrast ratios where you have to pass different levels (AA vs. AAA) https://webaim.org/resources/contrastchecker/

And being able to navigate a site with a keyboard, or announce when sections change. That stuff isn't automatic. It might be baked into whatever framework you're using, but those frameworks have bugs too.

Here's an example I ran into with React Native, and it's still not clear if they ever fixed it or if it just got closed as stale: https://github.com/facebook/react-native/issues/27989

Re:You don't need a modal window by pqb on Wednesday May 24, 2023 @09:14AM (#36057560)
> Accessibility support is a matter of priorities for a given project.

It is painful that some managers, architects or developers might think this way. Accessibility is not just for disabled people, such as the blind or those who have lost a limb. In the kitchen, for example, it is great to have push to open drawers (e.g. based on IKEA's EXCEPTIONELL [0]). If your hands are dirty, you can still open the kitchen drawer without getting anything else dirty. And this is just one example of accessibility.

Personally, I see screen readers as an additional tool (like Copilot or ChatGPT) to be used on a daily basis by keyboard users.

Screen readers can also help you, even if you are sighted. For example, with a ShortCat.app [1] I have a system-wide ace jump [2] with a command list. I don't have to use the mouse to move the cursor - I have a keyboard for that. But in applications that are not compatible with screen readers, you can only choose "close", "minimise", "maximise" buttons, and the first option - close - is the best for such an application (e.g. Sublime Text).

In other cases, they will read the text for you. If you are too tired to read, or your hands are occupied with a sandwich or utensils, you can use SR to read an article or paragraph for you.

[0]: https://www.ikea.com/gb/en/p/exceptionell-drawer-medium-with...

[1]: https://shortcat.app/

[2]: https://github.com/acejump/AceJump

Re:You don't need a modal window by danvesma on Wednesday May 24, 2023 @09:21AM (#36057648)
trolling.
Re:You don't need a modal window by huhtenberg on Wednesday May 24, 2023 @09:37AM (#36057852)
Not in the slightest.
Re:You don't need a modal window by boredumb on Wednesday May 24, 2023 @09:22AM (#36057651)
Accessibility is hugely important and every single html project people work on should at the very absolute least strive to satisfy the chrome light houses accessibility suggestions. It is _really_ not difficult to attain a basic level of accessibility and with a small effort by UX and product people the entire application could be easily usable by anyone able to currently use a computer.
Re:You don't need a modal window by KHRZ on Wednesday May 24, 2023 @10:11AM (#36058326)
I worked in a consulting company, which estimated accessability requirements to increase web development costs by 10%. It's easy to imagine some big successfull company paying it up like it's peanuts, but it's another hurdle for companies living on the edge. I was in another company that had done a lot of work on accessability. But in the end, they ran out of money and released their software extremely buggy, which contributed to their product failure and bankruptcy.

Non-bugginess is also accessability, but I don't see a law saying that you can't release unfinished software. So how would accessability be anything more than all the others unimplemented issues stuck in the backlog?

Re:You don't need a modal window by boredumb on Wednesday May 24, 2023 @12:54PM (#36060854)
There should be zero legal requirement to do so - I just meant to say there is a lot of low hanging accessibility fruit that doesn't require a large amount of time and money to implement that will give everyone using a computer a better experience.
Re:You don't need a modal window by onion2k on Wednesday May 24, 2023 @09:53AM (#36058092)
Adding keyboard control to an app makes it better for blind users and power users. Adding alt text to images makes it better for blind users and SEO. Adding ARIA tags makes a page better for blind users and for testing with things like testing-library.

I haven't found a single case where improving accessibility doesn't also result in a meaningful improvement for some set of users who don't need accessible features. There is absolutely no good reason not to make things accessible. Heck, I'd make an app accessible even if I had irrefutable proof that it had no users who need it to be accessible.

Re:You don't need a modal window by ricardobeat on Wednesday May 24, 2023 @12:42PM (#36060676)
This was a common argument in the early 2000s, until, you know, someone looked at real world data and figured that something like 10-30% of a website’s audience usually benefits from accessibility features. Accessibility is not only about supporting complete blindness or other stereotypical disabilities.
Re:You don't need a modal window by korijn on Thursday May 25, 2023 @01:22PM (#36073482)
You're right.

However, consider how much do you worsen the experience of the majority, and how much do you improve it for the minority? I think that should factor into this decision.

I think the article is mostly trying to make an effort to inform people of the options available to them, so that when you are creating estimates of the work required to support accessibility requirements, you're not overestimating out of sheer ignorance.

Re:You don't need a modal window by cyral on Wednesday May 24, 2023 @10:05AM (#36058258)
There has been a native <dialog/> element in HTML for a while for accessibility.
Re:You don't need a modal window by korijn on Thursday May 25, 2023 @01:17PM (#36073408)
That's mentioned in the article.
Re:You don't need a modal window by extra88 on Monday May 29, 2023 @12:37PM (#36115495)
Are you confusing screen readers with voice control software? Screen readers are most often used by people with vision impairments; with desktop operating systems, they use a keyboard not just for typing in form fields but to navigate and control all the websites and software on their device instead of a mouse or other device that operates a cursor.

Voice control software is used most often by people with limited use of their hands, verbal commands replace keyboard and cursor control inputs.

> Standard browser controls are all 100% accessible by default.

Unfortunately, this is not entirely true. For instance, `select` elements and their options don't reflow in most browsers. It is true that the native elements are much more accessible than most alternatives developers create.