This study investigates how accessible Web Components can be implemented using current web standards despite the accessibility limitations introduced by the Shadow DOM. While the encapsulation provided by Shadow DOM improves modularity and reusability, it creates a DOM boundary that prevents WAI-ARIA relationships and interaction patterns from working as intended. This presents a challenge for developers seeking compliance with the Web Content Accessibility Guidelines (WCAG) 2.1 AA and to follow the European Accessibility Act (EAA).
Using a Design Science research approach, three WAI-ARIA Authoring Practices Guide (APG) patterns - Modal Dialog, Combobox, and Checkbox - were implemented as Shadow DOM-based Web Components and evaluated through automated accessibility testing and manual testing with keyboard navigation and screen reader. The study identifies accessibility challenges related to cross-boundary ID references, focus management, form participation, and browser inconsistencies.
The findings show that APG patterns are conceptually transferable to Shadow DOM environments, but direct implementation often fails due to assumptions of a single DOM tree. However, this study identifies implementation strategies such as attribute forwarding, Shadow-host delegation, ElementInternals, and reflected element-reference APIs. These strategies can help developers to address the accessibility barriers Shadow DOM introduces and support developers in meeting WCAG 2.1 AA requirements.