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

[Discuss] Add text-decoration-skip: ink to all links on GOV.UK #281

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

NickColley
Copy link
Contributor

@NickColley NickColley commented Mar 10, 2017

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.

Before After
Before After
screencapture-gov-uk-social-security-child-support-tribunal-1489161673155
screencapture-gov-uk-1489161620081

@NickColley NickColley changed the title [Discuss] Adds text-decoration-skip: ink to all links on GOV.UK [Discuss] Add text-decoration-skip: ink to all links on GOV.UK Mar 10, 2017
@NickColley NickColley force-pushed the enable-text-decoration-skip-ink branch from 6e9f4f7 to 87f7dd6 Compare March 10, 2017 16:28
@robinwhittleton
Copy link
Contributor

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.

@36degrees
Copy link
Contributor

Gets a 👍 from me too.

@edwardhorsford
Copy link
Contributor

Looks good 👍 - prefer these links.

Might be helpful to show a smaller screenshot? Took me a second to work out what the change was.

@NickColley
Copy link
Contributor Author

NickColley commented Mar 13, 2017

Sorry @edwardhorsford you're right, it's not so obvious. I've updated the original comment to be clearer.

@NickColley
Copy link
Contributor Author

So looks like Safari does the ink behaviour by default so I'm thinking of maybe removing the -webkit- prefix line, thoughts?

@36degrees
Copy link
Contributor

I can't see anything on MDN or caniuse to suggest that -webkit-text-decoration-skip: ink does anything in any browser, so I think it can be removed.

This change is based of a design revision by Mia Allers to
improve readability of links with underlines
@NickColley NickColley force-pushed the enable-text-decoration-skip-ink branch from 87f7dd6 to 09e60c4 Compare March 14, 2017 11:45
@robinwhittleton robinwhittleton merged commit 7595dff into master Mar 16, 2017
@NickColley NickColley deleted the enable-text-decoration-skip-ink branch March 16, 2017 12:00
robinwhittleton pushed a commit that referenced this pull request Mar 16, 2017
- 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)
@robinwhittleton robinwhittleton mentioned this pull request Mar 16, 2017
robinwhittleton pushed a commit that referenced this pull request Mar 29, 2017
- 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)
robinwhittleton pushed a commit that referenced this pull request Mar 29, 2017
- 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)
@fofr
Copy link
Contributor

fofr commented May 5, 2017

I think the typography in Chrome makes some of these links harder to read – looks like rogue full-stops.

Chrome

screen shot 2017-05-05 at 11 37 38
screen shot 2017-05-05 at 11 37 32
screen shot 2017-05-05 at 11 40 08

Safari

screen shot 2017-05-05 at 11 38 15
screen shot 2017-05-05 at 11 38 11

fofr pushed a commit to alphagov/static that referenced this pull request May 5, 2017
# 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
govuk-design-system-ci pushed a commit that referenced this pull request Jun 14, 2017
Revert PR #281 - add `text-decoration-skip: ink` to all links on
GOV.UK.
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.

5 participants