-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Discuss] Add text-decoration-skip: ink to all links on GOV.UK #281
Conversation
6e9f4f7
to
87f7dd6
Compare
I’m certainly happy with this idea - it’s a single change that will make things look a little nicer in a few browsers and certainly no worse in the ones that don’t support it. For what it’s worth, the Mozilla bug to support it is https://bugzilla.mozilla.org/show_bug.cgi?id=812990; Microsoft don’t mention it on their platform roadmap. |
Gets a 👍 from me too. |
Looks good 👍 - prefer these links. Might be helpful to show a smaller screenshot? Took me a second to work out what the change was. |
Sorry @edwardhorsford you're right, it's not so obvious. I've updated the original comment to be clearer. |
So looks like Safari does the |
I can't see anything on MDN or caniuse to suggest that |
This change is based of a design revision by Mia Allers to improve readability of links with underlines
87f7dd6
to
09e60c4
Compare
- Fix EJS template (PR #270) - Add `theme-color` support to make the page surround in Chrome’s tab view on Android match the black GOV.UK header (PR #278) - Add `text-decoration-skip: ink` to all links on GOV.UK (PR #281) - Improve contrast of links when focused (PR #272) - Make header text colour black when focused (PR #274)
- Fix EJS template (PR #270) - Add `theme-color` support to make the page surround in Chrome’s tab view on Android match the black GOV.UK header (PR #278) - Add `text-decoration-skip: ink` to all links on GOV.UK (PR #281) - Improve contrast of links when focused (PR #272) - Make header text colour black when focused (PR #274)
- Fix EJS template (PR #270) - Add `theme-color` support to make the page surround in Chrome’s tab view on Android match the black GOV.UK header (PR #278) - Add `text-decoration-skip: ink` to all links on GOV.UK (PR #281) - Improve contrast of links when focused (PR #272) - Make header text colour black when focused (PR #274)
# 0.20.0 - Fix EJS template - PR #270 - alphagov/govuk_template#270 - Add `theme-color` support to make the page surround in Chrome’s tab view on Android match the black GOV.UK header - PR #278 - alphagov/govuk_template#278 - Add `text-decoration-skip: ink` to all links on GOV.UK - PR #281 - alphagov/govuk_template#281 - Improve contrast of links when focused - PR #272 - alphagov/govuk_template#272 - Make header text colour black when focused - PR #274 - alphagov/govuk_template#274 # 0.19.2 - Increase skiplink colour contrast - PR #263 - alphagov/govuk_template#263 - Fix Scala compile issues for Play template - PR #261 - alphagov/govuk_template#261 # 0.19.1 - Have focus outline appear outside of element rather than covering it in Safari and Chrome - PR #259 - alphagov/govuk_template#259
Based on some design updates Mia Allers has made, will work in Chrome Canary soon in Chrome Stable and Safari.
This prevents underlines from being drawn too close to glyphs
http://caniuse.com/#feat=text-decoration
I've included the
-webkit-
prefix but having trouble as it seems like some Safari versions already skip the underline, need to investigate more...Edit: I've had a look and it seems Safari does this behaviour by default.
Be good to get some feedback on edge cases people can think where we would not want to do this globally.