Chrome Accessibility Tools complains that certain children of an overlay box do not have the right contrast ratio. It seems like the tool considers the children to be "visible" when the overlay is hidden.
I can see the aria-hidden
property of the overlay being correctly set in the inspector as I open/close it, though (using attr("aria-hidden","false");
).
Setting aria-hidden="true";
through the inspector on the children individually fixes this problem.
I am confused as aria-hidden is supposed to hide the element and its children. Does anyone know what I am doing wrong?