nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
290 stars 159 forks source link

Improve Compatibility with Darkreader #885

Open emmahodcroft opened 4 years ago

emmahodcroft commented 4 years ago

See email to hello@nextstrain from Henri on 3rd Feb 2020.

Some with low vision benefit from inverting website displays, so they have a black background and white text. Extensions like Darkreader aid with this.

Using Darkreader with nextstrain.org/ncov renders like this: image

Mostly ok - but the tip labels on the tree don't show up at all. The mouseover still works. I suspect this may be because the tree is rendered slightly differently from the rest of the page, so isn't responding to however this works?

Would be good to test a little more thoroughly to ensure everything else is working, too.

jameshadfield commented 4 years ago

Tip labels are SVG text, which would be my guess at why they're not inverted.

joachimschmidt557 commented 4 years ago

This issue has been raised before with DarkReader. See https://github.com/darkreader/darkreader/issues/1963

The solution there was to create some exceptions for the site in question, ngrok.com.

This could also be achieved on nextstrain.org with:

.tipLabel {
    fill: #e8e6e3;
}