No video

Building an Accessible Accordion

  Рет қаралды 850

viewSource

viewSource

Күн бұрын

Aurooba and Brian dig into the semantics of not only what makes an accordion accessible, but also why a11y should be a first class consideration when you build anything on the web. They also explore how different ARIA tags work and what they indicate, taking a previously inaccessible accordion and transforming it into something navigable visually, with a keyboard, and with other assistive devices. Along the way, they also think out loud about the definition of an accordion and what that really means.
A full transcript of the episode is available on the website. Watch the video podcast on KZbin and subscribe to our channel and newsletter (viewsource.fm/...) to hear about episodes (and more) first!
Coding inclusive collapsible sections - inclusive-comp...
ARIA Guide to Accordions - www.w3.org/WAI...
Exploring what a React component is - • What is a React Component
Using React on the WordPress frontend - • Getting started with R...
Brian's website - www.briancoord...
Aurooba's website - aurooba.com
00:00:00 Introduction
00:00:15 The importance of accessibility
00:03:25 The different considerations of making something accessible
00:05:35 Recapping where are are in the Accordion Block series
00:06:50 Demo-ing an accessible accordion
00:08:36 Defining an accordion
00:10:40 Header versus heading
00:12:21 Keyboard accessibility
00:15:32 What does ARIA stand for?
00:16:03 Coding an accessible accordion
00:16:43 The components of an accordion section
00:17:23 Diving into the semantics of an accordion section header
00:23:11 Targetting ARIA tags in your CSS
00:24:21 Digging into the accordion section panel
00:26:32 Animating an accordion
00:27:46 Next Steps
00:29:34 Conclusion

Пікірлер: 10
@Nomad_Skateboarding
@Nomad_Skateboarding Жыл бұрын
The 'viral' tital for the show: "All the javascript in the world won't save you!" Really enjoyed the discussion on accessibility in general, and the technical sides you speak about in particular.
@user-xg7lf4en7c
@user-xg7lf4en7c Жыл бұрын
I think something missing from a lot of Accessibility videos is actually using the page/component with a screen reader. I think this is a crucial part of building accessible components. I often do integration accessibility tests for work and it becomes clear that developers never tried using the component with a screen reader. Understanding how users that use screen readers use sites and components is really important. It's another level of learning that a lot of developers and designers don't want to deal with. Then they have an accessibility audit and get 200 issues noting that the site/component doesn't work well with a screen reader. Sometimes shrugging the issues off noting "I used semantic markup, aria-roles and it passes our required static analysis test". Semantic markup, correct aria-roles and static-analysis tools get you a lot of the way there. But using a screen reader (preferably unsighted) to navigate your site with landmarks, headings, lists, and other modes will help make it clear when certain any of those elements and aria-roles are lacking. Beyond just making sure your site is WCAG X.X AAAA compliant, it will also help you understand if it actually offers a good experience for the user.
@viewsourcefm
@viewsourcefm 11 ай бұрын
That's a great idea! We'll keep it in mind for another episode.
@marklabbett8308
@marklabbett8308 10 ай бұрын
Can you share the code for the collapse feature?
@viewsourcefm
@viewsourcefm 10 ай бұрын
In this episode, we were using React, so actually just removing it from the DOM completely: github.com/viewSourcePodcast/viewSource-blocks/blob/add/accordion-block-a11y/src/accordion/app.js In a recent talk at WP Accessibility Day, we did present an alternate version of the accordion, with the collapse script here: github.com/bacoords/a11y-day-accordion-block/blob/main/src/accordion-block/view.js The video of that talk has not been published as of this writing, but should eventually show up on KZbin: kzbin.info/door/es9XCUZd51CAigbBEGlfNgfeatured?view_as=subscriber
@devinegger4570
@devinegger4570 Жыл бұрын
I'm curious: Are the aria-controls and aria-expanded properties enough to let a screen reader user know what's going on here? Would they know upon focusing on the heading with button that by "clicking" the button it expands more information about the heading? 🤔 Also, you had me yelling at the TV like a little kid about the "#" in aria-labelledby!!! So fun! 😂
@viewsourcefm
@viewsourcefm Жыл бұрын
ahahaha when Brian pointed out the hashtag to me I was like OMG HOW DID I MISS THAT. - Aurooba
@viewsourcefm
@viewsourcefm Жыл бұрын
When I tested it with the VoiceOver utility, it tells you that the button is attached to something that is "collapsed", which is maybe not the most verbose indication, but it IS there, and I didn't see any other guidelines on how to make it more verbose. But I'd be interested in hearing what you think! - Aurooba
@viewsourcefm
@viewsourcefm Жыл бұрын
I'm so glad I INTENTIONALLY put that INTENTIONAL error in my code. Did I mention it was INTENTIONAL and not a mistake? -B
@gianbattistamaricosu1911
@gianbattistamaricosu1911 9 күн бұрын
would be more more more and more usefull with a tab system
Reusable Components in React
29:06
viewSource
Рет қаралды 416
Getting started with web accessibility with Ashlee Boyer
30:29
Kevin Powell
Рет қаралды 54 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 34 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 12 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН
Component Overview: Accessible Accordion & Toggle
23:17
AutomaticCSS & Frames
Рет қаралды 2,8 М.
Exploring the Interactivity API in WordPress Part 1
36:13
viewSource
Рет қаралды 1,3 М.
How to Finally Motivate Yourself to Take Action
13:47
Charlotte Morabito
Рет қаралды 1,7 М.
Diving into models and views in Laravel
36:53
viewSource
Рет қаралды 663
Passing Props and Toggling an Element in React.js
33:00
viewSource
Рет қаралды 219
Curriculum Design Part 1: The High-Level Planning
9:18
Verbal to Visual
Рет қаралды 363 М.
My Whole Computer Science Degree in 12 Minutes
12:36
Jarvis Johnson
Рет қаралды 2,2 МЛН
Exploring the Interactivity API in WordPress Part 2
29:21
viewSource
Рет қаралды 472
The New dialog HTML Element Changes Modals Forever
12:09
Web Dev Simplified
Рет қаралды 583 М.