Skip to content

Commit

Permalink
Merge pull request Pikaday#921 from mshaaban0/fix/heading-a11y
Browse files Browse the repository at this point in the history
fix(accessibility): screen reader being forced to read headings on day change
  • Loading branch information
rikkert authored Mar 1, 2022
2 parents dd80c0a + c54e922 commit 21f676e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
opts = instance._o,
isMinYear = year === opts.minYear,
isMaxYear = year === opts.maxYear,
html = '<div id="' + randId + '" class="pika-title" role="heading" aria-live="assertive">',
html = '<div id="' + randId + '" class="pika-title" role="heading" aria-live="polite">',
monthHtml,
yearHtml,
prev = true,
Expand Down

0 comments on commit 21f676e

Please sign in to comment.