nodep-date-input-polyfill icon indicating copy to clipboard operation
nodep-date-input-polyfill copied to clipboard

WCAG 2.0 accessibility issue. "Label text is empty"

Open scrawlon opened this issue 6 years ago • 0 comments

The date-input-polyfill adds two select inputs 'yearSelect' and 'monthSelect' without labels. This triggers an "Label text is empty" error in a WCAG 2.0 accessibility tester.

screen shot 2018-11-15 at 9 51 21 pm

I was able to fix this by adding - aria-hidden='true' - to the date-input-polyfill element. This hides the date picker from screen readers.

scrawlon avatar Nov 16 '18 02:11 scrawlon