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

Fix #325 Focused, unvisited links are (extremely) low-contrast #326

Closed
wants to merge 1 commit into from
Closed

Conversation

alex-ju
Copy link

@alex-ju alex-ju commented Sep 21, 2017

This commit fixes #325, which is in essence a fix for PR #272 which was an attempt to fix #264.

If that sounds confusing enough, here is the short story:

  • Now we have blue text on green buttons when focused on unvisited links.
  • This PR is making use of a "less powerful" selector for improving contrast on links while not affecting buttons.

Buttons
Before:
screen shot 2017-09-15 at 14 21 53
After:
screen shot 2017-09-21 at 15 57 26

Tested with latest Chrome, Firefox on OSX and Windows and IE9, IE10, IE11 on Windows.

@edwardhorsford
Copy link
Contributor

Is this issue about the blue text on buttons?

I'm not clear if things are fixed from the images - the button 'after' example still looks wrong. It also looks like focused links are now black - was that the intention?

@alex-ju
Copy link
Author

alex-ju commented Sep 21, 2017

@edwardhorsford sorry for the misleading screenshots. updated.

@edwardhorsford
Copy link
Contributor

Thanks @alex-ju

Is there a reason focused regular links are now black rather than blue? I don't have a huge opinion on it, but it's a new change (over and above fixing the original bug as I saw it).

@alex-ju
Copy link
Author

alex-ju commented Sep 21, 2017

@edwardhorsford you're right, the regular links are not affected by this change; they will only be slightly darker when focused, as before. but the change is still relevant for focused unvisited links

@NickColley
Copy link
Contributor

NickColley commented Jan 18, 2018

Just ran into this, can we get this in? @edwardhorsford any objections?

@edwardhorsford
Copy link
Contributor

@NickColley I forget what this PR is about. Skimming it, it sounds like the PR was changing things outside of buttons - is that still the case?

@36degrees
Copy link
Contributor

I think this will mean that visited links, when focussed, will be dark blue rather than purple. How much of an issue is that?

The alternative, I think, would be to make the button more defensive – it would need to set a white text colour against the :link:focus and :visited:focus pseudo selectors?

@alex-ju
Copy link
Author

alex-ju commented Mar 16, 2018

The intention was to make the only the unvisited links darker. This PR doesn't fix that, so I'll close for now with the heads up that the problem is still there.

@alex-ju alex-ju closed this Mar 16, 2018
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

Successfully merging this pull request may close these issues.

Focused, unvisited links are (extremely) low-contrast Focused links have low contrast
4 participants