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

Should support for users with JS disabled be considered? #16

Open
Vheissu opened this issue Feb 26, 2013 · 0 comments
Open

Should support for users with JS disabled be considered? #16

Vheissu opened this issue Feb 26, 2013 · 0 comments

Comments

@Vheissu
Copy link
Contributor

Vheissu commented Feb 26, 2013

In the Hacker News discussion someone mentions support for browsers with Javascript disabled seeing the teaser text and I think it's a legitimate concern. I posted a proof of concept in the thread, and will post it here for discussion. This is a purely CSS only solution for users with Javascript disabled.

What do you think of this proof of concept?

this is teaser text
.teasertext { background: #000; color: #000; }
.teasertext:focus { background: inherit; color: inherit; outline: none; }

I think perhaps it could reveal the text a little bit when you hover over it by perhaps bumping up the color of the text to 444 and background to 333 or something. Or RGBa values could be used instead or perhaps for text the text-shadow (although not widely supported) could also be considered.

@FichteFoll
Copy link

Additionally, these fallback options should be overridden. I can't think of a way to do this automatically tbh since CSS definitions and the actual css selector for the jQuery command don't necessarily have to be the same.

Either way, this would be pretty nice.

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

2 participants