-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SortSite flags WCAG 2.0 F24 failure #1772
Comments
As far as I can see neither the background colour nor the foreground colour are set on textareas, so I’m not sure why it’s complaining… We should be careful if we decide to change the background / foreground colours of inputs as it's caused problems in the past – see https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites and alphagov/govuk_elements#397. |
The procedure for testing F24 only talks about foreground and background colours, neither of which are set on the textarea component. The only colour that we do set is the border colour, and technique C25 suggests that this is a totally fine thing to do. I think this might be a bug in SortSite's implementation of the F24 test? |
I've not yet been able to reproduce this using SortSite's online demo against http://govuk-frontend-review.herokuapp.com/components/textarea/preview. (I had to run it locally and remove the robots.txt restriction to get it to run) I've asked the person that originally raised this if they have any additional styles that might be setting the background or foreground colour on the textarea. It could be that the desktop version behaves differently, or they're using an older version? |
@antimega has been able to reproduce this in SortSite:
Line 29 is the We're also seeing this error flagged on http://govuk-frontend-review.herokuapp.com/components/back-link/preview, so it looks like this might not be related to the textarea component at all. |
Uh oh! @nikola-naydenov-hmcts, the image you shared is missing helpful alt text. Check #1772 (comment). Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs. |
The tool there appears to be testing against WCAG Level AAA, and is reporting that blue links don't have sufficient contrast with the white background. Public services in the UK are expected to comply with Level AA which only requires a contrast ratio of 4.5:1, and GOV.UK frontend is built to match that. If you are intending to meet Level AAA, you'll need to customise Frontend to match those requirements. Otherwise, you may have to change the settings on the auditing tool to ignore Level AAA failures. Hopefully that helps! |
As reported on Slack:
Which is F24: Failure of Success Criterion 1.4.3, 1.4.6 and 1.4.8 due to specifying foreground colors without specifying background colors or vice versa
The automated tool that flagged this is SortSite.
The text was updated successfully, but these errors were encountered: