My Heart Is In the Right Place, but the DOM Isn't

This ad is not shown to multipass and full ticket holders
JSNation US
JSNation US 2025
November 17 - 20, 2025
New York, US & Online
See JS stars in the US biggest planetarium
Learn More
In partnership with Focus Reactive
Upcoming event
JSNation US 2025
JSNation US 2025
November 17 - 20, 2025. New York, US & Online
Learn more
Bookmark
Project website
Rate this content

An enthusiastic look at some real-life horror stories of accessibility gone wrong. Learn accessibility best practices by examining cases where some people (myself included) built the right things the wrong way. Some customers were simply confused, while others literally became nauseous of what was built. Come learn from (my) mistakes while having a good laugh.

This talk has been presented at React Summit 2025, check out the latest edition of this React Conference.

FAQ

Translating ARIA labels is important because not all screen reader users speak your language, and translations ensure accessibility for diverse users.

The prefers-reduced-motion media query helps developers create web experiences that accommodate users with vestibular disorders by reducing animations that could cause dizziness or nausea.

Kyle West is a web engineer and accessibility lead for Family Search, co-authoring their design systems React library.

Kyle West's main responsibility is co-authoring the design systems React library, ensuring accessibility and usability across Family Search's products.

The phrase 'No ARIA is better than bad ARIA' means that improperly implemented ARIA (Accessible Rich Internet Applications) attributes can harm accessibility more than having no ARIA attributes at all.

'Potato code' is a term used by Kyle West to describe a piece of code that should not have passed code review, like an unintended hardcoded ARIA label that confuses screen readers.

Developers can avoid 'potato code' by conducting thorough code reviews, ensuring everyone understands accessibility best practices, and testing code appropriately.

You can find more information or contact Kyle West via Blue Sky or LinkedIn under KyleWestCS, or visit his website at kylewest.dev/slides.

Kyle West learned that adding tabindex to every element does not enhance accessibility and that understanding best practices is essential for creating accessible web experiences.

Inclusive acceptance tests are important because they ensure that accessibility features are maintained over time, preventing regressions that can negatively impact user experience.

Kyle West
Kyle West
18 min
17 Jun, 2025

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Kyle West emphasizes the importance of building accessible products and shares experiences in ensuring accessibility. A focus on accurate ARIA labels and the impact on accessibility. Optimizing accessibility with proper labels and utilizing the aria-hidden attribute. Lessons in ARIA usage, tabindex attribute, and the importance of quality code reviews. Addressing vestibular disorders in web design with solutions like prefersReduceMotion media query. Enhancing user comfort with accessibility queries and the importance of inclusive user-centric design in product development.

1. The Importance of Accessibility in Web Development

Short description:

Kyle West, web engineer and accessibility lead, emphasizes the importance of building accessible products. Sharing experiences and challenges faced in ensuring accessibility, including an interesting anecdote about 'potato code' encountered during a user interaction.

Hello, everyone. My name's Kyle West. I'm a web engineer and accessibility lead for Family Search. The title of my talk is My Heart is in the Right Place, but the DOM Isn't. One of my primary roles is that I co-author our design systems React library, which is used heavily throughout our products. As an author of a core system that is used by most of our, almost all of our users, I've always felt an added sense of responsibility for building an accessible product that's available to everyone. This has often led me to the ARIA authoring practices guide, which is provided by W3C. It's a wonderful resource for anyone who's trying to build a product that fits industry best practices.

If you've been there before, you'll have no doubt have seen this banner up at the top, which reads, No ARIA is better than bad ARIA. They have a wonderful link that we could go click on and read together if we wanted, but it's very logical and totally explains why that's important. But I've learned from more than documentation. I've had my own life experiences. Throughout my time, I've seen many times in which myself and others have tried to do the right thing, but didn't do it well enough to be effective. I have about three of those stories I'd like to share with you.

The first one to start us off, you've probably heard of spaghetti code and likely with it ravioli code, but you probably have not heard of potato code, which is the title of my first story. To give some context, one thing I do is I meet periodically with some of my blind patrons to understand what their experience is like and identify any issues that they might be facing, elicit feedback. I meet periodically with them. One time, I was meeting with a woman who herself is blind. She works in our support department and she often takes the calls for other blind patrons. That week, she had noticed something that was a little bit off from what she was expecting, and so she wanted to show us what the issue was.

If you're unfamiliar, the way in which a blind user interfaces with a computer is through a tool called a screen reader, which takes the graphical information displayed on screen and then reads it aloud to the user. Then the user has an elevated set of keyboard shortcuts that let them navigate the page. In other words, instead of you yelling at the computer, the computer now yells at you. Well, for this particular case, the issue that our user had found was on a page that looks something like this. It has a heading at the top with some high details about the information on the page, and then a series of main cards containing all sorts of important information, and then a series of smaller sidebar with some smaller card widgets that perform certain related actions to the page. The issue that she wanted to point out to us was at the very bottom of the sidebar section, and as she was navigating to that portion of the page, along the way, about halfway through the sidebar, the screen reader said something that we found very intriguing. It said, Link potato. She just skipped over it like it wasn't a big deal. We said, wait, wait, wait, go back. Did you say potato, or did the screen reader say potato? She said, yeah, it did.

2. The Impact of Accurate ARIA Labels

Short description:

Exploring the concept of 'potato code' in web development, highlighting the importance of accurate ARIA labels and the impact on accessibility.

When people ask me about it, I've been telling them that it's not really a potato. It's just a character or something that our screen reader doesn't understand, and so it just gets confused and says potato. But it's not really a potato, so they can just ignore it. Bless her. She had so much trust in us, the engineers, that she assumed that it was the screen reader that was the problem and not our code.

Well, I don't really trust our code that much, so I went and tried to find this immediately. It didn't take me very long to get to this little gem where, as you can see, someone had hardcoded ARIA label of potato onto an icon. If you're unfamiliar, ARIA label is a special attribute that the screen reader uses for us to be able to say, hey, for this portion of the DOM, use the given value to describe it.

So when we got to there with the screen reader, it said potato, which is not really ideal for the situation since it obviously wasn't a potato. Most of the time, an ARIA label is a good thing to have, but in our case, it was just put there superfluously, which gives me the definition of what I now call potato code, which is code that should have never made it past a code review. This is a prime example of no ARIA is better than bad ARIA.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Accessibility at Discord
React Advanced 2021React Advanced 2021
22 min
Accessibility at Discord
This Talk discusses the accessibility efforts at Discord, focusing on keyboard navigation and the challenges faced with implementing focus rings and outlines. The speaker showcases a unified focus ring system and a saturation slider to address accessibility concerns. They also highlight the implementation of role colors and the use of CSS filters for accessibility improvements. The Talk concludes with insights on runtime accessibility checking and the development of a performant core runtime system for checking accessibility issues.
Configuring Axe Accessibility Tests
TestJS Summit 2021TestJS Summit 2021
30 min
Configuring Axe Accessibility Tests
Top Content
AXe is an accessibility engine for automated web UI testing that runs a set of rules to test for accessibility problems. It can be configured to disable or enable specific rules and run based on tags. Axe provides various options, but axe linter does not support all options. The importance of investing time and resources in accessibility is emphasized, as it benefits not only those with disabilities but improves the web for everyone. Manual testing is also highlighted as a necessary complement to automated tests for addressing accessibility issues.
Nested Interactive Elements: An Nightmare in Accessibility
React Advanced 2023React Advanced 2023
23 min
Nested Interactive Elements: An Nightmare in Accessibility
Top Content
Watch video: Nested Interactive Elements: An Nightmare in Accessibility
Nested interactive elements can cause accessibility issues on websites, and the speaker shares a personal experience with an accessibility bug involving a list component. Mitigating nested interactive structures involves limiting these patterns during development and restructuring existing elements. The speaker provides recommendations for improving accessibility, such as adjusting role properties and gathering user feedback. The conclusion emphasizes the importance of accessible solutions and encourages sharing resources to build more inclusive experiences.
Dialog Dilemmas and Modal Mischief: A Deep Dive Into Pop-Ups
JSNation 2023JSNation 2023
10 min
Dialog Dilemmas and Modal Mischief: A Deep Dive Into Pop-Ups
The Talk discusses the use of dialogues and popovers in web development. Dialogues can be modal or non-modal and are now accessibility-supported. Popovers are versatile and can be added to any element without JavaScript. They provide suggestions, pickers, teaching UI, list boxes, and action menus. Modal and non-modal dialogues and popovers have different behaviors and dismissal methods. Browser support for these features is expanding, but there are still open questions about positioning, semantics, and other use cases.
Building a Fast Website for Every Single Visitor
React Advanced 2024React Advanced 2024
31 min
Building a Fast Website for Every Single Visitor
This talk focuses on building a fast and accessible website for all users, highlighting the importance of performance and user experience optimization. It emphasizes the need for adaptive implementation to cater to different devices and user conditions. The talk also discusses the factors beyond the developer's control, such as screen size, browsers, devices, internet connection, and sitting position. It highlights the significance of optimizing image components for various devices and the role of browser support and rendering engines. The speaker discusses the use of future APIs and the challenges of browser compatibility, as well as optimizing image formats and bundler compatibility. The talk provides insights on controlling bundler and device compatibility, optimizing CPU usage, internet connection, and JavaScript form submission. It concludes with a proposal to respond with save data instead of effective type for limited internet connections and recommends using React with adaptive hooks for better user experiences. Overall, the talk covers essential aspects of building a fast and accessible website.
a11y and TDD: A Perfect Match
JSNation 2022JSNation 2022
24 min
a11y and TDD: A Perfect Match
This Talk explores the intersection of accessibility and test-driven development (TDD) in software development. TDD is a process that involves writing tests before writing production code, providing a safety net for code changes. The Talk demonstrates how to apply TDD principles to real-life examples, such as filling out a form, and emphasizes the importance of user-centric testing. By using atomic design principles, code can be organized in a clean and easy way. The Talk also discusses the use of labels and test IDs in tests for improved accessibility.

Workshops on related topic

Web Accessibility for Ninjas: A Practical Approach for Creating Accessible Web Applications
React Summit 2023React Summit 2023
109 min
Web Accessibility for Ninjas: A Practical Approach for Creating Accessible Web Applications
Workshop
Asaf Shochet Avida
Eitan Noy
2 authors
In this hands-on workshop, we’ll equip you with the tools and techniques you need to create accessible web applications. We’ll explore the principles of inclusive design and learn how to test our websites using assistive technology to ensure that they work for everyone.
We’ll cover topics such as semantic markup, ARIA roles, accessible forms, and navigation, and then dive into coding exercises where you’ll get to apply what you’ve learned. We’ll use automated testing tools to validate our work and ensure that we meet accessibility standards.
By the end of this workshop, you’ll be equipped with the knowledge and skills to create accessible websites that work for everyone, and you’ll have hands-on experience using the latest techniques and tools for inclusive design and testing. Join us for this awesome coding workshop and become a ninja in web accessibility and inclusive design!
Automated accessibility testing with jest-axe and Lighthouse CI
TestJS Summit 2021TestJS Summit 2021
85 min
Automated accessibility testing with jest-axe and Lighthouse CI
Workshop
Bonnie Schulkin
Bonnie Schulkin
Do your automated tests include a11y checks? This workshop will cover how to get started with jest-axe to detect code-based accessibility violations, and Lighthouse CI to validate the accessibility of fully rendered pages. No amount of automated tests can replace manual accessibility testing, but these checks will make sure that your manual testers aren't doing more work than they need to.
Web Accessibility in JavaScript Apps
React Summit 2022React Summit 2022
161 min
Web Accessibility in JavaScript Apps
Workshop
Sandrina Pereira
Sandrina Pereira
Often we see JavaScript damaging the accessibility of a website. In this workshop, you’ll learn how to avoid common mistakes and how to use JS in your favor to actually enhance the accessibility of your web apps!
In this workshop we’ll explore multiple real-world examples with accessibility no-nos, and you'll learn how to make them work for people using a mouse or a keyboard. You’ll also learn how screen readers are used, and I'll show you that there's no reason to be afraid of using one!
Join me and let me show you how accessibility doesn't limit your solutions or skills. On the contrary, it will make them more inclusive!
By the end, you will:- Understand WCAG principles and how they're organized- Know common cases where JavaScript is essential to accessibility- Create inclusive links, buttons and toggleble elements- Use live regions for errors and loading states- Integrate accessibility into your team workflow right away- Realize that creating accessible websites isn’t as hard as it sounds ;)