Create a Semantic Checkbox vs an ARIA Checkbox
lessonDuration 5m 30s
We'll go over the work it takes to use ARIA to show why Semantic HTML is almost always the safer bet.
Browse
Find courses, lessons, articles, talks, and podcasts.
31 results for "aria"
Showing 1–24 · Page 1 of 2
lessonDuration 5m 30s
We'll go over the work it takes to use ARIA to show why Semantic HTML is almost always the safer bet.
lessonDuration 3m
Landmark regions are used by screen readers to make it easier for users to navigate the content on the page by defining the structure of the page. Tools like the Rotor in VoiceOver rely on landmark regions to provide users with the ability to skip directly to the desired section of the page. We can do this either using HTML5 landmark elements or `<div>` elements with aria roles. In the past, the recommendation was to use both but now we should only use one or the other. The following are ARIA roles for landmark regions: * `banner` * `complementary` * `contentinfo` * `form` * `main` * `navigation` * `search` * `application` ## References * https://dequeuniversity.com/assets/html/jquery-summit/html5/slides/landmarks.html * https://www.w3.org/WAI/GL/wiki/Using_ARIA_landmarks_to_identify_regions_of_a_page * https://www.w3.org/TR/html-aria/#docconformance
lessonDuration 8m 9s
What is this thing called ARIA? In this lesson, you'll learn about about WAI-ARIA, a.k.a. Accessible Rich Internet Applications, the W3C spec for specifying accessibility information in HTML and SVG. I cover the basics of applying ARIA roles, states and properties, helpful information for creators of user-interface widgets and component libraries. But it's important to note that you might not need ARIA at all! Before using it, it's important to educate yourself on what ARIA does and doesn't do for you.
lessonDuration 3m 33s
Themes convey meaning through color, tones, and contrasts. And the theme color palettes, alphas, and shadows deliver a consistent tone to your application and a unified feel for all Angular Material UI components. Theming allows developers to change the intention and meaning of the application by changing the colors and shadows. Accessibility is a huge - often overlooked - feature in modern web applications. Angular Material components all implement ARIA features whenever possible. And for usage scenarios where the ARIA attributes are not explicitly provided and cannot be inferred, then Angular Material will provide details console warnings alerting the developer. Let’s use the Angular Material Theming service to change the background, primary, accent, and warning colors used within the entire application. These will be configured at startup using the $mdThemeProvider. Let’s also resolve the two ARIA warnings shown in console. These originate from icon buttons where the ARIA label cannot be inferred. So let’s add a static aria-label and a dynamic, interpolated aria-label to those buttons. > This course presented by Thomas Burleson and Aaron Frost
lessonDuration 1m 52s
In this course, we'll be focusing on building an accessible component by using a built-in browser API with React to implement best practices in accessibility custom features. Everyone is responsible for accessibility, and we need to start creating features and websites with that in mind. The goal of this course is for you to exploit your understanding of HTML and aria, and be able to look at any common features and identify the different accessibility patterns. With this course you won't only learn about accessibility, but also will learn about `HTMLMediaElement` API, and state management in React.
lessonDuration 5m 55s
In this lesson, we are using HTML, accessibility concepts, and ARIA attributes to improve the time scrubber feature of an audio player. The goal is to make it accessible to users of screen readers so that the time scrubber announces the actual time (e.g. 12 minutes and 15 seconds) rather than just the value (e.g. 735). We are also creating a new folder called "helpers" in the "src" folder and a new file called "format time.js" within it to hold a function called "format human read time" that takes time as a parameter and returns the human-readable equivalent of that time. Additionally, the author debugs the code and uses console.log to check the variable. **Think about:** Why does a human-readable name help?
lessonDuration 1m 7s
Using our accessibility auditing toolkit we can find issues concerning landmark regions in our web application. The react-axe library will report findings in the JavaScript console of the browser. We could also run the axe browser extension to see the same results. The tota11y browser extension will annotate any landmark regions on the page and therefore if none are annotated it may indicate that they aren't any (_NOTE: tota11y will only annotate landmark regions using aria roles and not those using HTML5 elements_). Finally using the VoiceOver Rotor in Safari will show us whatever landmark regions have been defined in the Landmarks menu.
lessonDuration 1m 36sFree
In this lesson, we are going to use aria-current to give a screen reader user more context about what the current page is. Historically, many developers use an `.active` class to indicate that the page in a menu is the same that you're on. Instead of using a class, we are going to use the aria-current attribute to add more semantic value to the HTML and use that attribute to style the active link. Note: VoiceOver testing works best on the Native Safari Browser, hence why we should always use Safari to test. More resources: - [Using the aria current attribute](https://tink.uk/using-the-aria-current-attribute/) - [W3 WAI-ARIA - aria-current](https://www.w3.org/TR/wai-aria-1.1/#aria-current) - [Breadcrumb Example - w3-WAI ARIA Practices](https://www.w3.org/TR/wai-aria-practices-1.1/examples/breadcrumb/index.html)
lessonDuration 2m
Landmark regions are used by screen readers to make it easier for users to navigate the content on the page by defining the structure of the page. Tools like the Rotor in VoiceOver rely on landmark regions to provide users with the ability to skip directly to the desired section of the page. We can do this either using HTML5 landmark elements or <div> elements with aria roles. In the past, the recommendation was to use both but now we should only use one or the other. We should prefer HTML5 to ARIA roles when possible. The following are HTML5 elements for landmark regions: * article * aside * header * footer * main * nav * section ## References * https://dequeuniversity.com/assets/html/jquery-summit/html5/slides/landmarks.html * https://www.a11ymatters.com/article/intro-html5-sectioning-elements/ * https://www.w3.org/TR/html-aria/#docconformance
lessonDuration 6m 22s
When dynamic changes occur to content on a page they are usually visually apparent to users who can see the page but may not be made apparent to users of assistive technologies. ARIA live regions provide a way to make those dynamic content changes able to be announced by assistive technologies. ## ARIA attributes * `aria-live`: the priority with which updates are read * `aria-atomic`: whether the screen reader should always present the live region as a whole, even if only part of the region changes * `aria-relevant` - takes a list of what type of changes should be announced ## Resources * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions * https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-live * https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-atomic * https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-relevant * http://html.cita.illinois.edu/nav/form/aria/index.php?example=3
lessonDuration 3m 26sFree
In this lesson, we will be going over the attribute `aria-expanded`. Instead of using a class like `.open` we are going to use the `aria-expanded` attribute to style. This accomplished double duty because we have semantic value and visual indicators that a button is open and closed. To test this, I opened up Safari and used CMD + F5 to turn VoiceOver on. - [An Introduction to ARIA States](https://www.a11ywithlindsey.com/blog/introduction-aria-states) - [w3c Using aria-expanded to indicate the state of a collapsible element](https://www.w3.org/WAI/GL/wiki/Using_aria-expanded_to_indicate_the_state_of_a_collapsible_element)
lessonDuration 11m 41s
Learn how to create a modal dialog with accessible keyboard and screen reader mechanics using the native HTML5 dialog element and experimental inert attribute (with polyfills) and JavaScript focus management. We'll explore how to make a DIV or non-modal dialog into a modal one to contrast the differences. Finally, we'll expose accessibility information for NVDA, Voiceover, JAWS and other screen readers. For more details on creating accessible dialog content, check out this great article by Marco Zehe, Advanced ARIA Tip #2: Accessible Modal Dialogs: https://www.marcozehe.de/2015/02/05/advanced-aria-tip-2-accessible-modal-dialogs/ ### Used in this lesson: - Google dialog element polyfill: https://github.com/GoogleChrome/dialog-polyfill - Inert attribute polyfill: https://github.com/WICG/inert
lessonDuration 12m 24s
There are many techniques for hiding content in user interfaces, and not all are created equal! Learn how different hiding techniques in HTML, CSS and ARIA impact keyboard and screen reader users in addition to visual display. As a bonus, we'll also take a look using a screen reader on a mobile device.
lessonDuration 3m 42s
Icon buttons are very common in web applications, yet they often have accessibility problems. Learn how to make your icon buttons accessible to keyboard and screen reader users with HTML, CSS, SVG and ARIA.
lessonDuration 2m 33s
If we’re going to make our toggle accessible, we’ll need to apply certain aria attributes to the control that does the toggling. Instead of making the parent component handle that, we can provide a toggler directive that automatically applies the needed attributes. Content directives allow the user to tell the UI component where to make those modifications.
lessonDuration 2m 57s
Angular Material provides over 30 UI components and services. The framework offers a suite of components and containers: from simple Button components with built-in ink and hover effects, theming, and ARIA support… to more complex container components like mdList and Tabs. Let’s use some of those components in our SideNav and Content containers. For now we will use hard-coded, HTML markup. This allows us to confirm the UX matches that specified in the design docs before we start working on our application logic. > This course has been created by Thomas Burleson and Aaron Frost.
lessonDuration 2m 16s
I suggest using the previously learned approach but keep in mind that it may lead to an overly complex markup. We also use the `aria-label` attribute, which can be used to override the text within a label element. **Think about:** Why would you use an `aria-label` instead of creating a visually hidden span?
lessonDuration 1m 55sFree
In this exercise, we will be going over 2 examples of when to use aria-hidden (hint: decoration) and when to use hidden. In the first example, we will be hiding a "middle dot" that we have for formatting. This middle dot isn't necessary to be read out, so we add an aria-hidden attribute on that span. When we use hidden, we will completely hide things from the viewport AND the screen reader.
lessonDuration 19m 26s
We are creating an accessible popup menu for a web application. It covers various concepts, including handling keyboard events, creating a new dropdown component for reuse, using arrow keys to navigate through buttons, using the Tab key to close the menu and go to the next item in the tab order, using the Escape key to close the menu and focus on the button that closes it, using the `aria-expanded` attribute to communicate whether the menu is open or closed, and the difference between the tab index values of 0 and -1. **Think about:** - Why tabindex -1? - Why would you use arrows versus tab key to navigate through the dropdown?
lessonDuration 4m 37s
In this lesson, we are creating the audio player interface more visually appealing using icons from the React Icons library and Font Awesome, in this process, we are also ensuring that the interface remains accessible to screen readers by providing text descriptions for the icons, first by using the `title` prop on each icon, and then by implementing a `visually hidden` technique that hides the text descriptions from sighted users but makes them available to screen readers. This involves copying and pasting some CSS code to create a visually-hidden class, adding an `aria-hidden` attribute to each icon, wrapping each icon in a React fragment, and then adding a `span` element above each icon with the corresponding text description and the `visually-hidden` class. **Think about:** - Why use `aria-hidden` or visually hide spans? - What value does this add to screen reader users?
lessonDuration 1m 53sFree
There are a number of ways we can query form elements. In the past we've used `getByRole` with a `name` filter. We've also used `getByLabelText` to query `<labels>` and `aria-label` property. In this lesson we use [getByTitle](https://testing-library.com/docs/queries/bytitle/). The `title` attribute is often used on buttons that have just an icon or an X to give a little bit more context to its purpose. When you hover an item with a title attribute you often see a little tooltip with the full text displayed. It can be a nice improvement to accessibility. We use the `title` attribute here while testing the remove from cart button which just shows an X for the button contents. We give each title a unique name associated with what it's going to delete, so we can easily search for the exact button we want to use. -- This lesson continues to rely on the [user event library](https://testing-library.com/docs/ecosystem-user-event/) for simulating clicks. For a fantastic explanation of various approaches to calculating accessible names for form elements based on labels and titles check out this article: https://webaim.org/articles/label-name/#computation
lessonDuration 1m 19sFree
Testing Library's [findBylabelText](https://testing-library.com/docs/queries/bylabeltext) allow us to query a form element by either an associated `<label>` element or a `aria-label` property. Here we add an accessible label to our "add to cart" button to allow us to query the button without having to traverse the DOM. --- The name property used to filter our `findByRole` results above refers to the [accessible name](https://www.tpgi.com/what-is-an-accessible-name/) determined by the browser and could reference button text, heading text or a label associated with a form element.
lessonDuration 2m 26sFree
The [user event library](https://testing-library.com/docs/ecosystem-user-event/) provides a series of tools for programmatically interacting with a webpage during a test. Some of the supported events include `click`, `dblClick`, `type`, `upload`, `clear`, `tab` and `hover`. The interface is fairly straight forward in most cases you simply say `userEvent["eventName"]` and then pass in an element returned from a `findBy` or `getBy` query. At the beginning of this lesson we add a missing `aria-label` property to an `<input>` element to make it both more accessible and more queryable for our tests. Then we use `userEvent.clear()`, `userEvent.tab()` and `userEvent.type()` to update the quantity on our shopping cart page.
lessonDuration 3m 14s
`react-beautiful-dnd` enables users with visual impairments to perform drag and drop operations using only a keyboard and screen reader. This lesson will show you how you can customise the preset `react-beautiful-dnd` screen reader messaging to power your own domain-specific messaging as well as internationalisation. We will achieve this by using the `aria-describedby` prop on a *drag handle* as well as the `announce` function which is provided to the `DragDropContext` callback functions