Skip to content

Commit e89b5bc

Browse files
chrispymmmurrlipp
andauthored
fix(datepicker): change table role to application to force nvda out of browse mode (#1799)
* fix(datepicker): change table role to application to force nvda out of browse mode * docs: update datepicker docs to remove mention of the accessibility issue * docs: updated date --------- Co-authored-by: Murray Lippiatt <[email protected]>
1 parent 09e9979 commit e89b5bc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

docs/components/date-picker.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Date picker
33
tabs: true
44
status: Official
5-
statusDate: July 2024
5+
statusDate: September 2025
66
githuburl: https://github.com/ministryofjustice/moj-frontend/discussions/703
77
excerpt: "The date picker component enables users to select a date from a calendar."
88
lede: "The date picker component enables users to select a date from a calendar."
@@ -44,14 +44,6 @@ Date pickers are fully navigable using a keyboard, but can be slow for keyboard-
4444

4545
There's also the ['Ask users for dates' pattern in the GOV.UK Design System](https://design-system.service.gov.uk/patterns/dates/).
4646

47-
## Accessibility issues
48-
49-
There’s an accessibility issue with the date picker component. If you’re using it in your service you need to add these issue details to your accessibility statement.
50-
51-
### No focus indicator shown when navigating between dates (NVDA only)
52-
53-
When people use the screen reader software NVDA, no focus indicator is displayed when they navigate between dates. This only happens with NVDA software. This fails [WCAG 2.2 success criterion 2.4.7 (Focus visible)](https://www.w3.org/TR/WCAG22/#focus-visible). We’re aware of this issue and will implement a fix in 2025.
54-
5547
{% endtab %}
5648

5749
{% tab "How to use" %}

src/moj/components/date-picker/date-picker.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class DatePicker extends ConfigurableComponent {
265265
</div>
266266
</div>
267267
268-
<table class="moj-datepicker__calendar moj-js-datepicker-grid" role="grid" aria-labelledby="${titleId}">
268+
<table class="moj-datepicker__calendar moj-js-datepicker-grid" role="application" aria-labelledby="${titleId}">
269269
<thead>
270270
<tr></tr>
271271
</thead>

0 commit comments

Comments
 (0)