mirror of
https://github.com/moodle/moodle.git
synced 2025-04-04 16:04:00 +02:00
If the content in Tiny is wrapped by an element with only a background color, without text color, the accessibility checker will use the parent text-color as the foreground color, which is owned by form-control, it becomes a problem if the wrapped element background using #34274f and the parent text-color is #495057 then the low contrast as a result. To avoid such a situation, the patch will only calculate color contrast if only the element has text, so it will give results per element if the accessibility checker is unsatisfied. The patch also changes the selected element from 'body > *' to 'body *', so it will return all elements (parents and children) in the content instead of parents only. And minor modifications on the warning_content.mustache to fix the numbering format.