Accessibility error: empty buttons
-
Three empty buttons are generated by the jquery even when there is only one media file (i.e. not a slideshow). This is an accessibility problem. Would it be possible to move the code that generates these buttons into the “if (total > 1)” conditional block so they are not added to the DOM if they are not needed? Or at least to give them a default value when they are added to the DOM?
<button type="button" id="cboxPrevious"></button>
<button type="button" id="cboxNext"></button>
<button type="button" id="cboxSlideshow"></button>Thank you!
The topic ‘Accessibility error: empty buttons’ is closed to new replies.