Practical ARIA Use in Drupal: What to Use, When, and Why

Design thinking is a human-centered approach to innovation that draws from the designer's toolkit to integrate the needs of people, the possibilities of technology, and the requirements for business success. Design thinking has a human-centered core. It encourages organizations to focus on the people they're creating for, which leads to better products, services, and internal processes.
UX Indonesia / Unsplash

Mike Herchel, lead developer at Dripyard and maintainer of Drupal’s Olivero theme, offers a practical guide to using ARIA attributes effectively within Drupal themes. Emphasizing the accessibility maxim “don’t use ARIA unless you need to,” Herchel explains how to extend native HTML semantics responsibly to improve screen reader interactions and UX. Common attributes covered include aria-expanded for dropdowns, aria-label and aria-labelledby for landmarks and icon-only links, and ARIA roles like role="dialog" and role="group" for modals and carousels.

Herchel also clarifies Drupal-specific conventions, such as built-in support for <button> menus and the legacy pairing of semantic HTML with redundant roles in core. He encourages teams to modernize by removing outdated role attributes, and to test behaviors like visibility toggling and keyboard focus states thoroughly. This article balances tactical implementation tips with broader accessibility philosophy—ideal for themers refining ARIA use in Drupal projects.

Related reference: ARIA Authoring Practices Guide for carousels

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Related People

Upcoming Events

Latest Opportunities