Skip to content

Commit

Permalink
Merge pull request #1 from aatifishtiaq/aatifishtiaq-fix-for-screenre…
Browse files Browse the repository at this point in the history
…ader

Screen reader fix
  • Loading branch information
aatifishtiaq committed Apr 12, 2022
2 parents 21f676e + debcdbf commit 09d74f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,12 @@

renderTitle = function(instance, c, year, month, refYear, randId)
{
var currentDate = instance.toString('L');
var i, j, arr,
opts = instance._o,
isMinYear = year === opts.minYear,
isMaxYear = year === opts.maxYear,
html = '<div id="' + randId + '" class="pika-title" role="heading" aria-live="polite">',
html = '<div id="' + randId + '" aria-label="' + currentDate + '" class="pika-title" role="heading" aria-live="polite">',
monthHtml,
yearHtml,
prev = true,
Expand Down

0 comments on commit 09d74f2

Please sign in to comment.