Simplecov: Version for colorblind people

Created on 7 Nov 2016  路  5Comments  路  Source: simplecov-ruby/simplecov

Hello

I'm red green colorblind and cannot see the different between the css-class covered and missed.

I would love to see a colorblind version.

Thank you

Feature

Most helpful comment

@pascalandermatt you can make a PR to simplecov-html to change the stylesheet. Would that interest you?

All 5 comments

@pascalandermatt you can make a PR to simplecov-html to change the stylesheet. Would that interest you?

I will make a PR on Friday

:wave:

Very sorry that it took me so long to get here. I started most of my work with simplecov-core and only recently managed to get to simplecov-html.

I'd love to have a color blind version!

I closed https://github.com/colszowka/simplecov-html/pull/48 because it changed all the colors which in the end would be a bit much.

Keep in mind, I'm sadly no accessibility expert so please feel free to correct me (willing to learn of course)

I think what we need is one of the following solutions:

  • a way to configure the HTML formatter, so that it can run in "colorblind mode" with the colors exchanged/starker contrast
  • Use more symbols, right now every line has a "tag" that shows how often that line has been hit, so it should be "usable" even without the colors. That's all the way to the right though. Maybe we could add a +/- to the beginning of the line showing covered/not covered? Maybe also a ? or something for ignored
  • ... ?

Happy for input!

@pandermatt

I think adding + / - would be a great start

Was this page helpful?
0 / 5 - 0 ratings