-
Notifications
You must be signed in to change notification settings - Fork 327
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
Improve the readability and hover state of links #2197
Comments
I've updated the description to (retrospectively) cover the work we've done so far on this, so that we can track the remaining things (flipping the feature flag and removing it) in context. There were a couple of browser bugs relating to mis-painting links in columns and Chrome measuring the underline offset from a different point to other browsers – which is one of the reasons why we introduced this feature behind a flag. Now that those bugs have been fixed (and most users have updated to a newer version of Chrome) we're ready to enable the feature by default in v5.0. We still need to decide whether we want to keep the feature flag around for a while (so users can opt out if there are any other issues) or if we're happy to remove the flag at the same time. |
Having looked at this again, I'n inclined to remove the feature flag entirely because all of the underlying changes can be controlled by other settings. The flag is used in two places in govuk-frontend/packages/govuk-frontend/src/govuk/helpers/_links.scss Lines 33 to 41 in 3da7e59
govuk-frontend/packages/govuk-frontend/src/govuk/helpers/_links.scss Lines 53 to 59 in 3da7e59
This means with the flag removed you could still disable all of the 'new' link styles by setting: $govuk-link-underline-offset: false;
$govuk-link-underline-thickness: false;
$govuk-link-hover-underline-thickness: false; |
Based on the above, we decided to remove the feature flag in #3600. I think we can call this epic done! 🎉 |
What
Ensure that all of the components in GOV.UK Frontend that include links are using the core link helpers.
Update the link styles with the latest design changes.
Provide mixins and modifier classes for common link styles (without underlines, inverse for use on dark backgrounds) to help service teams implement the new link styles correctly.
Why
We want to make links:
v3.12
Once the Chrome bug with links in columns is fixed
Once the Chrome bug with incorrect offset calculations is fixed
v5.0
The text was updated successfully, but these errors were encountered: