mirror of
https://github.com/moodle/moodle.git
synced 2025-03-29 12:02:39 +01:00
If the content in Atto 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.