Accessibility Anti-Patterns
Event
AbilityNet Webinar Series
Description
An AbilityNet webinar exploring how accessibility work can sometimes backfire. Using live examples, I look at four anti-patterns: descriptive alt text on decorative images, misused ARIA, accessibility overlays, and hidden labels that cause issues when a site is translated. I also show how to avoid these problems through lean content, good use of ARIA, and being honest in your accessibility statement.
Transcript
This transcript was generated automatically from the audio, then edited by hand. Some content, such as questions from the audience, may be incomplete because it was not fully captured or recorded. If you spot any errors, please get in touch.
Show transcript
Hello everybody and welcome to today's webinar, accessibility anti-patterns.
It's just gone one o'clock.
So while I give you everyone a chance to join, if you can take a moment to check the technology.
So if you joined online, do feel free to drop into the Q and A box and say hi to the panellists and other attendees.
We have disabled the chat feature, as we've discovered it can cause problems for some people using screen readers.
So.
Okay, I'll just give a few seconds for more people to join.
Okay, so hello, everyone, and welcome to the webinars afternoon on Accessibility Anti-Patterns.
My name is Annie Mannion.
I'm digital communications manager at AbilityNet, and I'll be running you through a few housekeeping points before handing over to Dafydd Henke for today's session.
So we've got live captions provided on the webinar, in person from Judith at my clear text.
So thank you, Judith.
And we've also got additional live captions via streamtext.net and slider available via slideshare.net forward slash abilitynet.
And also on our website at abilitynet.org.uk, anti-hyphenpatterns, hyphen webinar.
If you have any technical issues and you need to leave early, don't worry, you'll receive an email with the recording, transcript, and slides.
And depending on how you joined the webinar, you'll find a Q and A window.
So if you want to ask any questions on the topic, do drop those in the Q and A area for us to address after today's session in a follow-up blog.
And then we also have a feedback page, you'll be directed to at the end, which invites you to tell us about any future topics you'd like us to cover in our webinars.
So do let us know.
So I'm joined today by Dafydd Henke, who is Principal Accessibility and Usability Consultant at AbilityNet.
Can I just...
Can everyone see the slides on screen?
If not, do raise your hand or let us know via the Q and A panel.
My colleague, Sarah, will be helping to answer any queries we've got coming through.
Okay, great.
So I'm just going to start with a poll.
So I'm just going to launch it now.
Um, what issues have you encountered when trying to make accessibility improvements?
And this is a multiple choice option.
And if you um, depending on how you've joined the webinar, if you you may find, you can't see the poll, but do feel free to respond in the Q and A panel.
So I'll just leave it a little bit longer to give more of you a chance to vote.
Okay.
Just over half of you have voted, so if anybody else wants to add some responses.
So the results are very interesting so far, do you know how, very well balanced.
They are.
Yeah.
Okay.
So to last few seconds for anyone that wants to engage with the poll.
And I'm going to end the poll now and share the results.
So we can see. Uh, 46% have said not knowing the right way to solve issues.
And then 49% have said not knowing whether something is user-friendly when using assistive technology.
Then we have another 49% having to retrofit accessibility.
And then another 49%, say, keeping on top of accessibility at large scale.
So, I think David will definitely be able to give you some useful pointers on how to address those issues.
So I'm now going to hand over to David for the main session.
Fantastic.
Thank you very much.
Yeah, so those poll results were really interesting because a kind of interesting balance of there's not necessarily one thing that we see being kind of pain point.
It's this kind of congruence of issues that kind of seem to have quite large impact.
So, as I've already introduced.
My name is Dafydd.
It is Welsh for David, and I'm one of the accessibility consultants at AbilityNet.
Now, there's a lot of kind of technicalities to my role, but principally, I can complain about websites and apps and how inaccessible they are.
And it's my job is to liaise with clients, to work out ways, to make things more accessible.
Now, there's going to be some cool themes today, that dovetail with some of the kind of, sort of some of the questions and answers that we saw from that poll.
So some of the core themes are accessibility that ends up getting removed to make things more accessible.
So something was done in the interests of accessibility, then later down the road, gets removed for the same reason.
Accessibility that can create problems, such as localisation challenges.
So where we talked about doing accessibility at scale, we often come across problems that might be okay at a very small scale, but when things kind of balloon out into 100s of 1000s of pages or pages targeting multiple different countries, for example, with multiple languages, that things start to fall apart.
And lastly, accessibility that kind of paradoxically can result in users feeling excluded.
In fact, there's kind of one way of kind of defining accessibility.
It's about including people rather than excluding people.
Now, to start with, probably the most common, albeit readily harmless issue we come across, is a kind of kitchen sink accessibility.
An excellent example of this is things like decorative alt attributes, sorry, descriptive alt attributes on decorative images.
So it's good practice to have kind of multiple ways to understand content.
For example, you have an image that tells a story and some text underneath it that tells the exact same story.
That's quite good from a cognitive point of view.
But if you're then kind of putting in things like alt attributes onto all those kind of images, then that then impacts the kind of accessibility user experience.
Now, to give you an example of what I mean, if I move over to my slide and go over to an Axe website.
Here we see that there are kind of several different articles, several kind of home tips and guides.
Now, from the mouse user's perspective, these kind of cards are one object, kind of one single object, that is a kind of combined object of an image, some a heading text, and some text underneath it.
And it's all kind of one link.
But, don't worry about the technicalities here.
If I run a little bookmarket, and what this is going to do, it's going to tell me the kind of accessible name of some of these images, well, we can see that there's more texts underneath here for assistive technology users.
So in the case of how to get rid of mould for good, we can actually see there's some additional text here, such as black mould against the white wall, or another image here that has bungalow with elderly man in front garden.
And a question you can ask yourself with this is materially, does this text add anything to the page?
If these images were entirely invisible, would anything be lost?
And in this case, subjectively, the answer would probably be no.
And you can imagine one or 2 cases that's fine.
But at scale, this can get problematic.
For example, a screen read user, navigating through what what is one object for the mouse user, would be navigating through a descriptive image, to a heading that communicates the exact same information, and then onto the link.
So what was, one object is then becoming multiple objects, even though this is something that is only exposed to system technology.
So one of the 1st things to think about with accessibility. Is thinking about the user experience and whether or not you need to expose all content to all users or whether or not some of it is decorative, whether or not some of it is there for kind of visual fluff.
Now, what's a bit more, what's a bit also quite common, and it's pretty bad, is poor use of ARIA.
Now, this isn't a technical masterclass on how to use ARIA, only that is a tool that you can use to build custom components.
So if you are just making a link, just making a button, then you can use native semantics and you get a lot of accessibility for free.
But things become more complicated if you want to build a custom component.
So here we have an example of a toolbar.
And if we kind of visually scan it briefly.
We can get the sense of, okay, so it's got some buttons, it's a row of buttons and it's contained within a kind of bar.
And if I was to navigate it with a screen reader.
And again, don't worry about the technicalities too much, but what I'm going to do.
Accessibility options.
Enable, enable VoiceOver, is I'm going to briefly try it with a screen reader.
VoiceOver on Safari.
Toolbar example, vertical line.
WAI-ARIA Authoring Practices.
Window, in tool, out of tool, in toolbar example, the...
We're going to see.
The...
How logical it seems when I'm using a screen reader.
So this is a tool that I can use, for example, if I can't see the screen, and I want to navigate it through the audio.
So let's see what, well, in this case, uh, VoiceOver, the screen reader is telling me.
Text, sample, Horace, text formatting, toolbar.
Okay, it's text formatting.
It's a toolbar to do with formatting of text.
Okay?
And if I enter into it?
In text formatting. Toolbar. 12 items, bold toggle button.
Okay, so it's, I'm in some kind of formatting toolbar, there's 12 items in it, and I'm on bold, on a button, on a toggle button, so I can switch it on and off, and that'll allow me, I presume, to make text bold or not bold.
If I navigate through it, real real quickly. Text alignment.
Ready text align, text align centre.
Radio, text align, right, radio button.
So I can navigate through these buttons, and in this case, I'm being told, oh, it's a radio button.
So in this case, I'm assuming I can only select one of them.
I can't, for example, have text simultaneously aligned in multiple directions, and it's telling me I have 3 options.
If I look at the screen, Yeah, that's right.
I have a line left, centre, and right.
So here's a case where ARIA is being used in a way.
That's very unable, and actually.
Enable VoiceOver.
A custom component to be made more accessible.
But if I go over to this other example, So here, we have a kind of carrousel pattern.
And it's one where I can hit kind of left and right arrows to kind of pageinate content.
If I try the same thing real quick where I'm going to try and navigate onto it with VoiceOver, and we're going to see what happens.
Accessibility, enable VoiceOver, ticked.
Voice keyboard preference.
Slick, the last Slick, the last carrousel you'll ever need, web content.
And I'll just go quickly jump to the page. To this kind of carrousel item.
What VoiceOver says, and see, whether or not I can make the same logical deductions.
Heading level two.
Single item, toolbar.
You are.
Okay, it's one two.
Is that right?
Is it like a set of four?
I can press?
Five.
Four?
Five?
That seems a bit strange.
Six.
Dollar signed out, single, horizontal, dollar toolbar.
Tool, okay, I'll end 2 in tool.
In toolbar?
One, one, clickable.
One, one clickable.
One, next button.
Next button.
You are bullet one, bullet one.
Bullet one.
So what we can very, very quickly see.
Here is 2 examples.
Enable VoiceOver.
VoiceOver off.
Enable VoiceOver.
Both of which someone has tried to make more accessible using ARIA.
Again, it's not a master class on how to use ARIA, just the kind of note of it can be used to make things much more accessible, but can also make something much more complicated.
Because with that 2nd example, if it was just 2 buttons in an image, it would be less confusing than hearing one bullet, one toolbar.
So that kind of used scenario actually made a bit more confusing.
Now, the next thing that we often see getting kind of pulled out of websites is things like accessibility plug-ins and sidebars.
There are a lot more rare, but arguably can have a much more negative effect.
Now, there are a lot of them out there, and a lot of them position a main claim that they will kind of protect businesses from lawsuits, and that there is an accessibility magic bullet.
For example, accessibility user 1st and user way.
Now, do take my position on these with a pinch of salt.
I am an accessibility professional, so I am biased against any kind of plug-in that will automatically solve accessibility problems.
However, whilst there's some that kind of better and worse, some really are snake oil.
There are some that are out there that do not perform the function that they say that they do.
So in some cases, you will see some that actually create accessibility problems rather than solving them.
And here, I've got some articles that are in the slides, if people want to go away and kind of find more evidence about these.
So, I need to back that up a little, right, to explain what I mean by these plug-ins, causing problems.
So, again, I'm going to assume away.
I'm going to move on to the BBC website.
Now, what I want people to do, if you can visually perceive the screen, is play a game along with me.
What I'm going to do is I'm going to try and navigate the BBC website using just my keyboard.
And what I'm going to do is I'm going to start hitting tab, and I'm going to use the tab button to go element by element by element through the page.
So visually on the screen, I can see that I've hit tab, I've moved through the interactive items in the navigation, and I'm currently on sounds.
Now if I hit tab again.
Where do we think I'm going to go?
I'm going to pause for a moment just so people can think, fire tab, where am I going to go?
Tab.
CBC.
Now if I hit tab again, where am I going to go?
Now, I will say to myself, I am 100% certain that I will go on to CBBs, and I'm willing to say 100% confidence of that.
Exactly.
And that is what happened.
And if I carry on kind of tabbing through the page, I can access all of the interactive items.
So, if I tap onto something, so, for example, if I tap back onto news headlines, I am certain that if I hit enter, I'm going to go onto the news onto a news headlines page, And that is exactly what happened.
Now that is the standard interaction of keyboard navigation that you'll see across the web.
It is a solved problem of using standard components to allow users to go tab, tab, tab, tab through interactive items, and otherwise using things like arrow keys, page up, and page down to kind of pageinate content, and potentially read through content, not the attractive items.
Now, if I go into this example where we have an accessibility kind of plug-in available, That, and one thing you often see these plug-ins is arguments that you don't need to make any changes to your code, that instead they will just click, they will flip a magic switch and through kind of AI will make your website accessible for you.
If we try the exact same game where we try to see whether or not the keyboard navigation is logical.
So again, I'm going to start tapping through the page.
And 1st I come across is press enter for keyboard navigation.
Now, as a potential keyboard user, this is already potentially raising warning signs for me, because I shouldn't need a special mode to navigate the website.
I should just be able to go tab, tab, tab, to the website, and admittedly here, I can.
I can see where I am on the page.
I'm going through the navigation.
Admittedly, it's taken me longer than it should, because I'm having to tab through every single one of these options, rather than just maybe the pound ones first.
Although it then gets a bit fishy later on in the page, because suddenly I can't see where I am anymore.
So where we saw on the BBC website where I was 100% confident that I knew exactly where I was on the page, now I don't know.
I do not know whether or not I am on the get the true accessibility plug-in link or whether or not I am on the best plan for any brand link.
And if I tap forward and backwards a few times, I'm not certain.
I do not know.
My certainty levels have gone from 100% on the BBC website to, in this case, 50-50.
I'm really not sure.
But let's see if this materially is improved with me enabling this kind of keyboard navigation.
So I've now kind of turned on a keyboard mode for navigating this website.
So I'm going to start hitting tab to navigate through the page.
And, ooh, press, control an F9.
I don't want to do that.
I just want to type through the page.
And, oh, no, no, I want to navigate that navigation bar.
So I'll, I must have skipped over it. Go back onto it.
Okay, I'm bypassing it.
Okay, main menu?
Maybe the main menu is the navigation.
Oh, okay, there we go.
And I'll hit tab to go through them.
Oh, no that didn't work.
Okay, that, that, that's fine.
I'll just try going through the page instead, so I'll go to main content.
And okay, I'll navigate through.
Okay, so I've tab, so now I'm using tab, and I'm on platform supported.
So that must mean that if I press enter, That's going to load a platform supported page.
But that's strange, it doesn't.
So in this case, what this plugin has done has actually changed the standard paradigm of keyboard navigation, where I'm now hitting tab, and I'm navigating onto plain text.
I'm navigating onto things that are not interactive.
Now, I want to stress that this is not a kind of webinar really kind of, um, to purpoo the idea of using tools to make things more accessible, only that the idea that there is one thing that is magically going to solve your accessibility challenges is simply not true, and one thing that we often see happening, and often see having to be retrofitted, is the kind of removal of plug-ins that try to solve too many problems.
Now, what we also see is what we can call problematic accessibility.
So accessibility that's done, that later down the road can cause some challenges.
Now we often see this with something called an ARIA label.
Now, every single element that exists on a website can have this thing called an ARIA label.
Now, this is just a kind of behind the scenes name that an element can have.
Now, in this case, we have an example of a button called cookie settings.
But if we look very carefully, we can see that it's got this name, cookie settings, that's kind of duplicated.
Now the problem that we get is that people struggle to maintain patterns when you have something that is visually on the page, but also something that's done in the back end of the page.
So as an example, what we very commonly see is generic links that are meant to be made more accessible, EDU with hidden text or an ARIA label.
So where you might come across something like read more.
And in the background, something is done to make it a bit more explicit.
So, for example, read more about blah, blah, blah.
To show for example, if I go onto CSS tricks, one thing they've done, and I will say they've done it, it's a nice thing they've done it, is that they have multiple of these read article links, sorry, these read articles all over the page.
However, if I inspect one of them.
What I can see in the background, Is that each one of them has this kind of screen reader text, that essentially gives more context to the link.
And you might say, well, what's wrong with that?
What's problematic about that?
Well, what we see at scale?
Is that people often forget them?
Is that you end up with people having to very, very manually fill these out for every single page, and also forgetting to localise them.
So an example I have here from Aberystwyth University, is I can turn the page to Cymraeg.
So I can have it be in the Welsh language.
If I look through the page, visually, it looks like that localisation effort has been done successfully.
But, If I, for example, inspect some of these objects that don't have visual names, because maybe they've got some kind of name in the background.
I can see that there's some English left here.
So there's some kind of English that's been left in for accessibility purposes to give some of these things names for screen readers for voice recognition software that we've forgotten to localise.
Now the kind of solution here is to leverage kind of use of ARIA that doesn't rely on hard coding strings that doesn't rely on having to very manually go through and on every single page filling out kind of individual strings.
And this is often what we see as the outcome of an audit.
So we will do an audit for someone and they kind of fix very local issues on very individual pages, but potentially miss out on this bigger picture about how these patterns are going to scale well with accessibility.
As an example pattern here from inclusive components, the idea being that that read more button can actually be described or labelled by the heading of the card.
So that there's no kind of strings that are secretly put in the background, and they're instead just wiring up what is already on the page to make a bit more sense for users.
Now, what I lastly want to talk about is exclusionary accessibility, where accessibility can somewhat take a vantage point where it actually kind of pushes people away.
Now the most common instance of this we see is when user research is not used effectively.
So accessibility, absolutely needs to be part of your used research, if you're not going to considering accessibility, then you're not considering a kind of healthy, um, an inclusive kind of use group to include.
At the same time, it must not be glorified bug testing.
So you do not want to include kind of screen users, kind of keyboard users, voice recognition software.
There's part of your user research.
If their inclusion is to get stopped at the very, very 1st page start of the website.
So as an example where I was navigating the BBC website, if you can imagine a world in which I couldn't tab onto any of these links, and it was entirely inoperable with a keyboard, full stop.
Could not be used with a keyboard.
That would not be the suitable time to involve kind of diverse users in that user testing session.
If you have kind of internal staff that can help you out and point in the direction, that's, that's great.
But if you're involving members of the public and presenting them with something that is just functionally broken, then that can be exclusionary.
The kind of analogy I make is that you probably wouldn't run user kind of testing sessions with a website that you knew didn't work with a mouse or an app that you knew nothing happened when you pressed the screen.
So, make sure that you're including accessibility in your user research when you have done at least some foundational internal testing so that you know it's good enough to kind of get some real valuable interactions out of.
Another point is it is absolutely foundationally important that you be vocal about your commitment to accessibility.
Do not keep it a secret.
But there is a big difference between being vocal, about your commitment to accessibility, and being vocal about how successful you are at accessibility.
Because for your users, your accessibility is only as good as their awareness of your accessibility.
So, absolutely, shout from the heavens how seriously you're taking it.
But don't make wild climbs, because with accessibility, trust is paramount.
So whilst you can absolutely say, this is all the work that we're doing and we really, really proud of the work we've done.
Really, really, really never try to say, we, we have done accessibility, we have finished with accessibility.
It's 100% complete.
Because the reaction to that is going to be distrust.
The reaction to that is going to be a thought of.
I'm not sure that I believe that.
To give an example, if I go onto the Gov website.
So this is the British government, I'm on their accessibility statement.
If I start to scroll through the page, one, the things that's right at the top, is then honestly admitting that parts of their website are not fully accessible.
Which, on the one hand, enables users to have an awareness of, okay, so they are working hard on it, and they are committed to it.
But they're not 100% there yet.
That's good.
And what problem areas should I be aware of?
Oh, I'm aware, for example, that some of their tables don't have the correct row headers.
Okay, great.
When I'm on tables, I'll maybe double check them, for example.
So this then engenders this kind of awareness, this transparency, this trust, that wouldn't be there if the communication was simply, we are 100% WCAG compliant, and we are entirely accessible.
Because if the gov is saying that they know that they have problems, chances are that you do as well, and you will really benefit from being open and transparent about that, because it materially helps users, being honest about your inaccessibility is a form of accessibility itself.
Now, to kind of end, you might say, well, okay, what can we do?
What can we look at?
The 1st thing to keep in mind is having very lean content.
So if you draft and draft and draft again and cut and cut, such that the content that you are ultimately putting on your pages, if as slim lines it can be, then you are giving yourself an amazing head start with accessibility.
A lot of accessibility problems, come from having too much content, and you've got to find kind of very complicated patterns, to try to kind of overcome a kind of dearth of content.
Sorry, I'm not death content, like an over a plagia it's overflowing with content.
But also elegant components.
When I've talked about ARIA, one of my favourite quotes is that no ARIA is better than bad ARIA.
And when in doubt, the 2 place I'm going to signpost you to is things like the WAI-ARIA Authoring Practices.
So if you're building custom components, and you, for example, want to get the sense of, well, okay, but how should a keyboard user interact with this?
What are the kind of basic expectations?
Is you can look through these patterns and say, well, okay, I'm building an accordion.
How do keyboard users interact with it?
Oh, this is how they interact with it.
And what are some of the suggested ARIA that I should be using?
This is some of the suggested ARIA I should be using.
And if you want to instead get more of a kind of deep dive in some of the stuff, inclusive components is a place where you can go to get a sense of if I'm building things and I want to build them in a way that's kind of scalable and inclusive users, including components of the place to go.
Now, lastly, avoiding accessibility for the sake of accessibility.
So do not just write alt attributes, because you feel like you need to add alt attributes.
Do not just add in hidden text everywhere, because you feel like they'll help users.
And when in doubt, referring things like the web accessibility tutorials from the W3C.
Inasmuch as they can signpost how to do things in a way that's quite elegant and is quite slim line.
And lastly, not falling for things like kind of accessibility snake oil.
If someone comes to you and says, hey, we can solve your accessibility challenges like that and they will go away.
You can very instantly think yourself, well, actually know, we know that it's not something that can be instantly done.
We know that it's a lot of work.
We know, especially at scale, that actually will have to potentially take it in bite-sized chunks.
Then you know that anyone that comes to you saying, we will solve all your problems.
You know to potentially look somewhere else.
But also, lastly, being honest about your issues.
Being open and transparent, so that if users do come across problems on your website, they can look at your accessibility page and say, oh yeah, they're aware of this, and they're working on it.
But also an internally building a roadmap.
So things like targets like, well, we want users to be able to complete our kind of primary user journeys with a keyboard.
We need to make sure there are all our core components like our navigation, for example, is 100% working with a screen metre.
And then picking and choosing your battles then in what kind of individual sprints, where you're working on features, and including accessibility in the sprints, rather than kind of doing it once and trying to fix it forever.
And thank you ever so much.
Appreciate this was a kind of bite-sized session today, and it's been of a whirlwind tour, um, but just wanted to thank people for coming along and listening to me.
Thank you, David.
That's right.
I will pass over to, so I'll quickly just do this.
I'm going to quickly check the Qnet and I'll pass over back to yourself.
Thanks. And I can see we've had quite a few um Q and A's.
So we'll try to capture them in a follow-up blog with answers soon and we'll share them on forward slash anti-hyphen patterns, hyphen webinar, but I'm afraid we've run out of time to cover them now unless there's anything particularly pressing.
I was having a quick look.
I more than half.
I said, I'm more than happy to have a look at anything that comes through afterwards if that's okay with people.
I'm sure I can contribute to a blog.
So, just to share that we do also run online training sessions on accessibility, you can find out more about the map forward slash training.
And also you can use an exclusive 10% off discount code just for registrants of this particular webinar, which is anti-patterns 10.
Some of the courses that we've got coming up in September include how to begin your own accessibility testing, understanding, accessibility, evaluations, and testing results, accessibility for copywriters and accessibility testing in mobile apps.
And then you can also sign up to our newsletter for the latest announcements about digital accessibility and our own accessibility services at forward slash newsletter.
Then our next webinars, um, at forwardsash webinars, um, the next one is on the 8th of September, and that's accessibility insights with Paul Smythe from Barclays, and then um, the higher education and public sector updates um, on the 22nd of September alongside um, a case study with opening university.
And then um, You can also access today's session and many more in our archive on our YouTube channel, which is youtube.com forward slash abilitynet.
And finally, we also have a podcast which is forward slash podcast.
So just to say thank you, David, and thank you all for your questions and for coming along and we'll be in touch with you all soon.
Thanks, everybody.
Thanks, everyone. Bye Bye.