Accessibility Updates for Q1 2025
Craft CMS · April 16, 2025
About this announcement
Now that Q1 has wrapped up and Craft 5.7 is out, here’s a look at the accessibility improvements we’ve made since our last accessibility update.GeneralIn Craft 5.6.7, a bug was fixed that led to inconsistent slideout behavior for users who preferred reduced motion — such as focus not being moved into slideouts, or being unable to activate certain slideouts via keyboard.We also resolved a bug in 5.6.11 where focus wasn’t returned to the action menu trigger after closing a field layout element’s settings slideout.In 5.7, we fixed an issue that caused focus to drop when closing the Image Editors and Edit slideouts that were triggered from the action menu.We also included an update to lightswitch input styles. Now, the background and handle maintain a 3:1 contrast ratio against each other and the meta panes’ background color (#16853).The user preference for “Always show focus outlines” was removed in this version. The change not only resulted in more maintainable CSS, but is more in-line with our goal to have accessibility features baked into the defaults.We’ve removed button roles and accessible names from “Reorder” handles throughout the control panel, and the handles have also been removed from the tab order, as they are not keyboard-interactive. In the majority of cases, adjacent “Actions” disclosure menus have non-drag, keyboard-accessible options to reorder the element.Craft 5.7 includes a new custom field, Button Group.This field implements a component pattern suggested by Léonie Watson for groups of buttons where selecting one button de-selects the others. It’s common to see this type of component coded with a semantic radio group where input is visually hidden and labels are styled to look like buttons. However, it can cause confusion when you see what looks like a group of buttons, but keyboard focus and selection don’t work as you’d expect because keyboard focus is managed differently for radio inputs. By using semantic buttons with aria-pressed attributes, t
Read Full Story