/eds-content-ops:block-accessibilityfrom eds-content-ops
Deep accessibility audit for AEM Edge Delivery Services block markup patterns. Goes beyond generic WCAG testing by understanding how EDS blocks generate DOM, how the table-to-block transformation works, and common accessibility failures in block decoration including missing ARIA roles, broken focus management, and keyboard navigation gaps. Use when auditing blocks for WCAG 2.1 AA compliance or preparing for accessibility certification.
Ships in eds-content-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit the rendered DOM of AEM Edge Delivery Services blocks for WCAG 2.1 AA compliance, with deep knowledge of how the EDS table-to-block transformation works and the specific accessibility failures it can introduce. Produces per-block fix reports with code-level remediation for both the decorate() function and the authored content.
This skill fetches external web pages for analysis. When fetching:
accessibility-fix instead).block-scaffolder instead, which includes accessibility from the start).content-audit instead).block-testing instead).accessibility-fix — page-level accessibility remediation including navigation and metadata.block-testing — broader block quality analysis including performance and CSS scoping.block-scaffolder — create new blocks with accessibility built in from the start.content-audit — holistic page audit that includes accessibility as one dimension.When an author creates a block in Google Docs, Word, or da.live, they create a table. The EDS pipeline transforms this into DOM as follows:
<div class="{block-name}"> wrapper.<div> child of the wrapper.<div> child of the row.This transformation means the block's initial DOM is a series of generic <div> elements with no semantic meaning. The decorate() function is responsible for adding semantic structure — converting <div> containers to <ul> lists, adding ARIA roles, setting up keyboard navigation, and restructuring content into accessible patterns.
The most common accessibility failures in EDS blocks are: (1) missing semantic restructuring — the decorate() function adds visual styling but does not convert the <div> soup into semantic HTML, (2) interactive blocks without ARIA — tabs, accordions, and carousels lack role, aria-expanded, aria-selected, and aria-controls, (3) no keyboard support — blocks respond to clicks but not Enter, Space, Escape, or arrow keys, (4) focus management failures — dynamic content does not receive focus or traps it incorrectly, and (5) author-supplied content gaps — missing alt text or ambiguous link text originating in the source document.
EDS blocks follow ARIA patterns that differ from generic web components because the DOM is generated from authored tables, not hardcoded templates. The decorate() function must dynamically apply ARIA attributes based on discovered content. A tabs block must count rows to determine tab count, then generate aria-controls IDs and cross-references dynamically.
Before starting, create a todo list to track progress through these steps:
Fetch the published page and catalog every block on it:
Fetch the published page at the URL the user provides. Use the full rendered page, not .plain.html, because blocks are only decorated in the published version.
Identify all blocks by finding all elements with the class pattern <div class="{block-name}-wrapper"> containing <div class="{block-name}">. The wrapper <div> is added by the EDS loader; the inner <div> is the block itself.
List each block with its name, variant classes (if any), position on the page (above or below fold), and whether it contains interactive elements.
Categorize blocks as:
Prioritize the audit order: Interactive blocks first (highest risk), then navigation blocks, then static blocks.
For each block, examine whether the decorate() function produced meaningful semantic markup:
<ul> and <li> elements, not bare <div> elements. If a block renders a collection of items, each item should be a list item. Check for: <div class="cards"><div><div> — this should be <ul role="list"><li>.<nav> with <ul> / <li>.<section> with an aria-labelledby referencing the block's heading, or <article> for self-contained content units.aria-label or aria-labelledby describing their purpose.decorate() function replaces or wraps headings, it must preserve the author's heading level. A block that converts all headings to <h2> breaks the page heading hierarchy.<table>, <thead>, <tbody>, <th>, and <td> — not a visual grid of <div> elements. If the block's purpose is to display data in rows and columns, it must use real table markup with scope attributes on headers.For each interactive block, verify the correct ARIA pattern is implemented:
| Requirement | Check | Status |
|---|---|---|
Tab container has role="tablist" | ||
Each tab has role="tab" | ||
Each panel has role="tabpanel" | ||
Active tab has aria-selected="true" | ||
Inactive tabs have aria-selected="false" | ||
Each tab has aria-controls pointing to its panel ID | ||
Each panel has aria-labelledby pointing to its tab ID | ||
Inactive panels are hidden with hidden attribute (not display:none) |
| Requirement | Check | Status |
|---|---|---|
Each trigger is a <button> (not a <div> with click handler) | ||
Each trigger has aria-expanded="true" or "false" | ||
Each trigger has aria-controls pointing to its panel ID | ||
Each panel has role="region" | ||
Each panel has aria-labelledby pointing to its trigger | ||
Collapsed panels use hidden attribute |
| Requirement | Check | Status |
|---|---|---|
Carousel container has aria-roledescription="carousel" | ||
Carousel has an aria-label describing its purpose | ||
Each slide has role="group" and aria-roledescription="slide" | ||
Each slide has aria-label like "1 of 5" | ||
Live region has aria-live="polite" for auto-advancing | ||
| Auto-advance pauses on focus or hover | ||
Previous/next buttons have descriptive aria-label values | ||
Dot indicators have aria-label and aria-current |
| Requirement | Check | Status |
|---|---|---|
Dialog has role="dialog" | ||
Dialog has aria-modal="true" | ||
Dialog has aria-labelledby pointing to its title | ||
Close button has aria-label="Close" | ||
Background content has aria-hidden="true" when dialog is open | ||
| Focus is trapped inside the dialog | ||
| Escape key closes the dialog | ||
| Focus returns to the trigger element on close |
Test keyboard access for every interactive block:
:focus-visible styles. If the block uses outline: none without a replacement focus style, flag as P0.Tabs:
Accordion:
Carousel:
Modal/Dialog:
Document every keyboard failure with the exact keys that fail and the expected behavior.
Verify focus is managed correctly when content changes dynamically:
<body>), flag as P0.aria-live used to announce changes to screen readers? Auto-advancing content that is not announced is P1.Check color contrast within the block's rendered context:
Evaluate how the block's content will be announced by screen readers:
order, grid-row, or flex-direction: row-reverse, check that the DOM order still makes sense.display: none or the hidden attribute are correctly hidden from screen readers. Elements hidden with opacity: 0, position: absolute; left: -9999px, or clip-path may still be read. Verify hidden content is truly hidden using the correct method.alt="" (empty alt, not missing alt) or aria-hidden="true". Missing alt on decorative images causes screen readers to announce the filename.aria-label or visually hidden text providing the label. An <a> wrapping only an <img> needs descriptive text.aria-live with the appropriate politeness (polite for non-urgent, assertive for errors).<label> associated via for/id or wrapping, or an aria-label/aria-labelledby.For each block audited, produce a standalone report:
Block type: Static / Interactive / Navigation Variant: {variant name or "default"} Location: {above/below fold}
| ID | Severity | WCAG Criterion | Issue | Element | Fix |
|---|---|---|---|---|---|
| A1 | P0 | 2.1.1 Keyboard | Tab panels not reachable via keyboard | .tabs-panel | Add tabindex="0" to panels and arrow key navigation to tabs |
| A2 | P0 | 4.1.2 Name, Role, Value | Tabs missing role="tab" | .tabs button | Add role="tablist" to container, role="tab" to each tab |
| ... | ... | ... | ... | ... | ... |
For each P0 and P1 finding, provide a specific code fix:
// BEFORE (in decorate function)
tabs.forEach((tab) => {
tab.addEventListener('click', () => switchTab(tab));
});
// AFTER
tabs.forEach((tab, i) => {
tab.setAttribute('role', 'tab');
tab.setAttribute('aria-selected', i === 0 ? 'true' : 'false');
tab.setAttribute('aria-controls', `panel-${i}`);
tab.addEventListener('click', () => switchTab(tab));
tab.addEventListener('keydown', (e) => handleTabKeydown(e, tabs, i));
});
Provide a 2-3 sentence summary of the block's accessibility status and the effort required to remediate.
After all per-block reports, produce a page-level summary:
| Symptom | Cause | Fix |
|---|---|---|
| Cannot determine block type from rendered DOM | Block has been heavily restructured by decorate() | Read the block's JS source to understand the transformation |
| ARIA IDs collide when block appears multiple times | IDs are hardcoded instead of generated dynamically | Use block.id or a unique prefix per block instance |
| Keyboard navigation works in Chrome but not Safari | Safari requires explicit tabindex on non-natively-focusable elements | Add tabindex="0" to <div> elements that need focus |
| Screen reader announces block content twice | Content is duplicated visually and in aria-live region | Remove duplicate content or use aria-hidden="true" on the visual copy |
| Focus indicator not visible on dark backgrounds | Focus style uses a dark outline color | Use outline: 2px solid var(--color-primary) with sufficient contrast or a double outline (light + dark) |
<div> elements. The decorate() function must pay down this debt by adding semantic HTML and ARIA. A block that only adds visual styling is inaccessible by default.role="tab" but missing aria-controls and aria-selected is worse than no ARIA at all — it sets incorrect expectations for assistive technology users.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./Other plugins' skills for the same job