Commit 3633108
fix: add role="group" to flex layout div with aria-label for WCAG 2.2 compliance (#75)
* fix: add role="region" to flex layout div with aria-label for WCAG 2.2 compliance
Adds role="region" attribute to the flex layout div that contains aria-label to comply with:
- WCAG 2.2 Level A criterion 4.1.2 (Name, Role, Value)
- ARIA 1.2 specification (aria-label is prohibited on elements with implicit role="generic")
The role="region" landmark is semantically appropriate for layout sections and allows proper use of aria-label as an accessible name.
* fix: restore full CHANGELOG.md history
Previous commit accidentally truncated the changelog. This commit restores all historical entries while keeping the new accessibility fix entry in [Unreleased].
* fix: restore complete CHANGELOG.md with all historical entries
Complete fix restoring missing last line "- `flex-row` and `flex-col` blocks."
* fix: use role="group" instead of role="region" on flex layout div
role="region" is a landmark; since flex-row is a high-frequency, often
nested block, it produced many identically-named region landmarks
("Section row"), polluting screen-reader landmark navigation. role="group"
also accepts aria-label and resolves the ARIA 1.2 / WCAG 4.1.2 violation
without introducing any landmark. Matches the existing pattern in
slider-layout. Also restores the trailing newline in CHANGELOG.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Vinícius Seixas <vinicius.seixas@vtex.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 79ee2d8 commit 3633108
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments