Closed markconroy closed 2 years ago
Hey @markconroy,
Thanks for the feedback and reporting the bug!
It's a strange bug, but I managed to replicate the issue and determined that my ruleset that flags excessive all caps text is the cause.
In the meantime, if you set allCapsQA: false
that should fix it. Although I'll have a proper fix for this next release. I'll keep you posted.
Cheers!
You're a star. Thanks so much for the quick response.
It should be fixed now! 🙂
Please let me know if you come across any other issues (or have any other feedback)!
Works a treat. Thanks.
Hi,
Thanks for this library, it's great.
One issue we have found is that if our JS changes the DOM sa11y doesn't breaks it. Here's my example:
I have an accordion, which uses
h3
for the accordion title and leave the accordion body visible. Then, if JS is available, we use progressive enhancement to grab thish3
, create abutton
element, and wrap theh3
with the button element, and hide the accordion body. This button is then used to as the trigger to show/hide the accordion body.However, sa11y is doing 2 things (I think):
h3
and not the updated element which now has a button, andbutton.addEventListener('click', ...)
doesn't do anything any more.We can fix it by:
.accordion
to thecontainerIgnore
array (this is what we've currently done while figuring out a better fix (hence this issue!)Have you any thoughts on this, or how we might get sa11y to work with the updated DOM?