nationalarchives / tna-components

This repo will host all components and it's assets, built with JS & React
https://nationalarchives.gov.uk
MIT License
2 stars 1 forks source link

Fix sr-only causing accessibility error #81

Closed AshGDS closed 4 years ago

AshGDS commented 4 years ago

Hi @JamesWChan,

Would you be able to merge this PR?

It fixes the issue we saw on WebAIM WAVE where the sr-only classes were displaying a contrast issue. I added a black background and white text to the class (although it's always invisible to the eye) to solve this.

You can test global search with WAVE to see if it's fixed here: https://tna-global-search.netlify.app

Thanks :+1: