-
-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
- The row with days of the week:
<div class="vc-week" data-vc="week" role="row" aria-label="Days of the week">has therole="row". This role is only allowed inside another role (table, grid or treegrid). - The dates themself (1,2,3,4, etc) have a
role="gridcell". This role is only allowed inside a row, which in his turn is only allowed in arole="grid". - Adding on issue 2, the
role="grid"is present, but the required children withrole="row"are missing.
Steps to reproduce
Please list the exact steps to reproduce the issue:
- 3.0.3
- Setup a regular calendar, nothing special.
- n/a
Expected behavior
The correct role placement on the div elements.
<div class="vc-wrapper" data-vc="wrapper">
<!-- Aria label added -->
<div class="vc-content" data-vc="content" role="table" aria-label="Calendar">
<!-- Days of the week as columnheaders, rol=row and columnheader -->
<div class="vc-week" data-vc="week" role="row" aria-label="Days of the week">
<div role="columnheader" class="vc-week__day" aria-label="Monday" data-vc-week-day="1">Ma</div>
<div role="columnheader" class="vc-week__day" aria-label="Tuesday" data-vc-week-day="2">Di</div>
<!--- ... -->
</div>
<!-- Dates -->
<div class="vc-dates" data-vc="dates" role="rowgroup" aria-live="assertive" aria-label="Datums in the current month">
<!-- One row per week --->
<div role="row" class="vc-week-row">
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 1, 2025" data-vc-date-btn="">1</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 2, 2025" data-vc-date-btn="">2</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 3, 2025" data-vc-date-btn="">3</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 4, 2025" data-vc-date-btn="">4</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 5, 2025" data-vc-date-btn="">5</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 6, 2025" data-vc-date-btn="">6</button>
<button class="vc-date__btn" type="button" role="gridcell" aria-label="September 7, 2025" data-vc-date-btn="">7</button>
</div>
<!-- ... -->
</div>
</div>
</div>
CodeSandbox example (REQUIRED)
The example link perfectly shows the issue:
Example link: https://codesandbox.io/p/sandbox/eloquent-dubinsky-cfthqk
Additional context
SiteImprove notified me of this issue.

uvarov-frontend
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working