As part of a planned upgrade to the Table component, Squarespace's Design Platform team requested an accessibility audit of the component to occur in tandem with engineering work. I was responsible for performing the audit, as well as collaborating with engineers on remediations.
The Table was undergoing significant changes as new patterns were being added, but the existing API wasn't something that allowed for these to be added easily. This became an opportunity for a visual refresh, and thus a wider scope was acceptable for accessibility issues that could be addressed during the planned work.
Some core points that turned up issues were:
- Filtering
- Searching
- Bulk actions
While there were many similar issues across parts of the Table (such as lack of focus indicators), each of these wound up having unique needs that led to teachable moments for the team.
Filtering came with a Drawer component to choose options to filter on. Focus management for modals and similar components was still new to the team, so focus trapping needeed to be addressed. Additionally, adding a filter added a dismissable Chip component above the table. These also required focus management, as dismissing a Chip initially made focus become lost. Addressing this led to focus management improvements for all modal components.
As a user searched for items within the Table, the Table contents dynamically updated. In the beginning there was no mechanism to report these changes to assistive technologies, which led to the addition of a live region to report on changes or errors from the search input. This allowed the team to get more comfortable with live region patterns, and more components that relied on state (such as progress bars) received updates to include them.
The bulk actions menu was a new addition that only appeared if rows were selected (and actions supplied by consumers were available to take, such as deletion). However, it was ever-present in the DOM and simply visually hidden (in the way one might hide something meant to be seen by assistive technology, but not sighted users). Addressing this led to better patterns on removing unused markup from the DOM when not in use, and a proper addition to the design system for content meant to be hidden from sighted users but not assistive technologies.
Audit agreements with the accessibility team generally required a committment to remediating 70% of issues found (and within that 70%, all issues of critical severity had to be remediated) - this audit was the first where all issues found were fixed by or shortly after launch.