Skip to content

Commit 63a6869

Browse files
authored
Merge pull request #758 from craftcms/a11y/correct-tablist
Quick fixes to accessibility page
2 parents 41b7b46 + 514be0f commit 63a6869

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/5.x/development/accessibility.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ Everything else (like rows in a [table field](../reference/field-types/table.md)
267267
{% set tabMap = collect([]) %}
268268
{% set groupId = "tab-group-#{random()}" %}
269269
270-
<div role="tablist" aria-labelledby="{{ groupId }}-label">
271-
{# The name for this group of tabs could be something dynamic: #}
272-
<h2 id="{{ groupId }}-label">Tab List</h2>
270+
{# The name for this group of tabs could be something dynamic: #}
271+
<h2 id="{{ groupId }}-label">Tab List</h2>
273272
273+
<div role="tablist" aria-labelledby="{{ groupId }}-label">
274274
{# Loop over once to output tabs: #}
275275
{% for tab in tabs %}
276276
{# Create a temporary ID and add it to the map: #}
@@ -304,11 +304,11 @@ Note that we’re creating a two-way binding between the `tab` and `tabpanel`:
304304

305305
## Testing and auditing
306306

307-
The best time to start auditing your front-end for accessibility is during development.
307+
The best time to audit your front-end for accessibility is during the design phase. The next best time is during development.
308308

309-
As you build out your templates, tools like Deque’s [Axe DevTools for Web](https://www.deque.com/axe/devtools/web-accessibility) can flag concrete violations and help you prioritize remediation.
309+
As you build your templates, tools like Deque’s [Axe DevTools for Web](https://www.deque.com/axe/devtools/web-accessibility) can flag violations and help you prioritize remediation.
310310

311-
To monitor the accessibility of content and quickly identify issues that crop up after launch, consider using a tool like [Accessible Web](https://accessibleweb.com/)’s [automated scanning tool](https://accessibleweb.com/ramp-web-accessibility-tools/accessibility-monitoring/).
311+
To monitor content accessibility and quickly identify issues after launch, consider using a tool like [Accessible Web](https://accessibleweb.com/)’s [automated scanning tool](https://accessibleweb.com/ramp-web-accessibility-tools/accessibility-monitoring/). Keep in mind that automated scans catch only a fraction of accessibility issues, and manual testing should also be part of your process.
312312

313313
Set up a [custom source](../system/elements.md#sources) for your assets using the **Has alternative text** condition rule to give authors a central place to remedy missing image descriptions:
314314

0 commit comments

Comments
 (0)