--- name: custom-element-accessibility description: "Use when reviewing custom element class definitions or Web Component source code to check for missing ARIA reflection, keyboard handling, and form association." metadata: category: html priority: medium difficulty: advanced estimatedTime: "60" source: frontendchecklist.io url: https://frontendchecklist.io/en/rules/html/custom-element-accessibility --- # Make custom elements and Web Components accessible Custom elements that lack ARIA reflection are invisible to screen readers — a button that looks correct visually may be announced as a generic "group" or not at all. ElementInternals provides the bridge between the shadow DOM and the accessibility tree, and it is also the only standards-compliant way to integrate custom inputs with native HTML forms. ## Quick Reference - Prefer native `