Reusable accessibility patterns and templates for EU Accessibility Act compliance (WCAG 2.1 AA)
Internal Documentation: This page contains templates and patterns for maintaining accessibility compliance across all documentation. Not intended for end users.
As of June 28, 2025, all digital services must comply with EU Accessibility Act requirements. These templates ensure WCAG 2.1 AA compliance across all documentation.
<Card title="Card Title" icon="icon-name" href="/destination-page" aria-label="Navigate to destination page for specific action"> Brief description of what this card does</Card>
<CardGroup cols={2} role="group" aria-label="Support options"> <Card title="Contact Support" icon="envelope" href="/user-guides/contact-support" aria-label="Contact our support team via email" > Get help from our team within 24 hours </Card> <Card title="FAQ" icon="circle-question" href="/user-guides/faq" aria-label="Browse frequently asked questions" > Find quick answers to common questions </Card></CardGroup>
<Card title="Download App" icon="download" href="https://apps.apple.com/app/cleft" aria-label="Download Cleft app from Apple App Store (opens in new window)"> Get Cleft for iOS, iPadOS, and macOS</Card>
<Accordion title="Question or Topic" role="button" aria-expanded="false" aria-controls="accordion-content-unique-id"> Content that answers the question or explains the topic.</Accordion>
<AccordionGroup role="region" aria-label="Frequently asked questions about account setup"> <Accordion title="How do I create an account?" role="button" aria-expanded="false" aria-controls="create-account-content" > Step-by-step instructions for account creation. </Accordion> <Accordion title="How do I reset my password?" role="button" aria-expanded="false" aria-controls="reset-password-content" > Password reset instructions and troubleshooting. </Accordion></AccordionGroup>
Use proper heading hierarchy with ID anchors for keyboard navigation:
Copy
## Main Section {#main-section}Content for the main section.### Subsection {#subsection}Content for subsection.#### Details {#details}Detailed content.
<!-- Good -->[Download from Apple App Store](https://apps.apple.com/app/cleft) (opens in new window)[Contact support via email](mailto:[email protected])<!-- Avoid -->[Download here](https://apps.apple.com/app/cleft)[Email us](mailto:[email protected])
<!-- Proper aria-label --><Card title="Support" icon="help" href="/support" aria-label="Get help and support from our team"><!-- Accessible accordion --><Accordion title="How do I reset my password?" role="button" aria-expanded="false"><!-- Descriptive link -->[Learn how to contact support](/user-guides/contact-support)<!-- Proper heading hierarchy --># Page Title## Main Section### Subsection
Implementation Note: These templates should be used as the standard for all new documentation and when updating existing pages. Consistency across all 96+ MDX files ensures compliance and better user experience.