Closed pbru87 closed 3 years ago
Are you aware of any screen readers which do require the ="true"
for them to work properly? NUglify takes a very aggressive (but should be functional) approach to minification, much of the output is debatably not spec-compliant, but is correctly parsed by browsers.
Happy to "fix" this if its a real problem.
Can you repro an issue?
Hi Andrew, I have just set up a test web page, which can be found at https://www.patrick-brunck.de/temp/accessibility-test.html
The page contains test case 1 (aria-hidden="true"
) and test case 2 (aria-hidden
).
Please open the web page via Mozilla Firefox, switch to the reader view and use its screen reader feature.
Test case 1 (aria-hidden="true"
) will not be read, but test case 2 (aria-hidden
).
I hope this helps!
Best regards, Patrick
Ok great, are there other aria attributes which require the same treatment?
None that I know about. I just stumpled on this issue, because of the feedback I got from Google Lighthouse.
Fixed in 1.13.2
NUglify minifies
aria-hidden="true"
toaria-hidden
.According to Font Awesome, this should not be done:
If you run a website with just
aria-hidden
against Google Lighthouse, it also recommends to use the non-minified versionaria-hidden="true"
instead.