Accessibility checker finding false positives

Accessibility checker finding false positives

by Glenn Pillsbury -
Number of replies: 3

Moodle 3.3.4

Entering any standard text (black) into the text editor will generate an accessibility warning about color contrast.

See below:

accessibility false positive

This is a good idea, but why is it generating these false positives?

Average of ratings: -
In reply to Glenn Pillsbury

Re: Accessibility checker finding false positives

by Randy Thornton -

This happens in 3.4.1 as well. Clearly a mistake.

In reply to Randy Thornton

Re: Accessibility checker finding false positives

by Glenn Pillsbury -

Thanks for the reply.

I did some more digging, and it seems to happen once HTML formatting is applied to the text.  The formatting can be simple <p> tags or bold or italics, none of which affect color contrast by themselves.  If you strip out the HTML formatting, there is no issue.

I've opened a tracker: MDL-61643

In reply to Glenn Pillsbury

Re: Accessibility checker finding false positives

by Randy Thornton -


Glenn,

Excellent troubleshooting, and exactly so. Since just typing in any text at all in Atto will automatically add <p>s for you, it will immediately break. It must not have even been tested at all.

I will vote that issue up, thanks for making the tracker.


Randy