localgovdrupal / localgov_base

The base theme for LocalGov Drupal websites.
8 stars 14 forks source link

Text styles add colours, which convey meaning not available to non-visual or colour blind users. #563

Open msayoung opened 3 months ago

msayoung commented 3 months ago

Our default text styles offer these options:

These add a coloured outline or background making these stand out visually. The colours also suggest meaning (green - good, red - danger).

There is no text alternative for these styles meaning that the text won't stand out to non-visual (eg screen reader) users. Colour blind users may not be able to distinguish one from the other.

This could (or should ? ) be dealt with in content - for example adding "Warning:" to the beginning of the text.

Thoughts?

Related https://github.com/localgovdrupal/localgov_base/issues/531