Skip to content
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

Investigate: add a color contrast toggle to the site #5

Open
jamiefolsom opened this issue Oct 12, 2017 · 5 comments
Open

Investigate: add a color contrast toggle to the site #5

jamiefolsom opened this issue Oct 12, 2017 · 5 comments
Assignees

Comments

@jamiefolsom
Copy link
Member

Based on Access Scholar's recommendation. Research, and update this issue with a proposal. Timebox: 1 hour.

@feralresearch
Copy link
Contributor

feralresearch commented Oct 18, 2017

I have one of these on my personal site (Click the eyeball icon at the top of http://digitalscenographic.com/).

This is very straightforward vanilla javascript: swap the stylesheets on request.

The challenge is to persist the change across visits. In my case I used HTML5 Web Storage which is also very straightforward:
https://www.w3schools.com/html/html5_webstorage.asp

It seems widely supported:
https://caniuse.com/#search=localstor

Would this be ok for our site? The work would mostly be creating the stylesheet.

@jamiefolsom
Copy link
Member Author

👍 Love this idea. I don't see it in action on your site, but fine by me to try it out, and see how people like it.

@SteveMarvin
Copy link

I don't see how to test this. Is it implemented?

@feralresearch
Copy link
Contributor

@SteveMarvin Sorry I think I just put this in the wrong lane, still learning the ropes - this is in this PR: #11

@SteveMarvin
Copy link

working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants