-
Notifications
You must be signed in to change notification settings - Fork 325
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
Known issue: hover state is mis-painted on links within CSS multiple-column layouts #2204
Labels
Comments
EoinShaughnessy
added
awaiting triage
Needs triaging by team
and removed
awaiting triage
Needs triaging by team
labels
Apr 26, 2021
36degrees
changed the title
Known issues: hover state changes behaviour of link underlines
Known issue: hover state is mis-painted on links within CSS multiple-column layouts
May 4, 2021
Merged
injms
added a commit
to alphagov/govuk_publishing_components
that referenced
this issue
Sep 9, 2021
Lists are easier to scan when each column is alphabetically sorted vertically. This is possible to do automagically with CSS columns, but Chrome doesn't like CSS columns when links are using `text-decoration-thickness` [1][2] - so another solution was needed. CSS Grid Layout has support going back to IE 10[3] and allows for vertical columns as long as the number of items in the columns are known - so when the navigation is updated the CSS controlling the grid needs to be updated. [1]: alphagov/govuk-frontend#2204 [2]: https://bugs.chromium.org/p/chromium/issues/detail?id=1190987 [3]: https://caniuse.com/css-grid
injms
added a commit
to alphagov/govuk_publishing_components
that referenced
this issue
Sep 14, 2021
Lists are easier to scan when each column is alphabetically sorted vertically. This is possible to do automagically with CSS columns, but Chrome doesn't like CSS columns when links are using `text-decoration-thickness` [1][2] - so another solution was needed. CSS Grid Layout has support going back to IE 10[3] and allows for vertical columns as long as the number of items in the columns are known - so when the navigation is updated the CSS controlling the grid needs to be updated. [1]: alphagov/govuk-frontend#2204 [2]: https://bugs.chromium.org/p/chromium/issues/detail?id=1190987 [3]: https://caniuse.com/css-grid
It looks like this issue may have been fixed in Chrome 102 🎉 |
1 task
Closing this issue as Chrome 102+ has reached 95%+ adoption. |
36degrees
added a commit
that referenced
this issue
May 10, 2023
In July 2021, we made some improvements to new link styles [1] which were released as part of v3.12.0. We introduced these changes behind a feature flag `$govuk-new-link-styles: true` which service teams needed to set before importing GOV.UK Frontend in order to opt-in. This was in case users: - needed to make changes to their service to introduce these new link styles consistently - wanted to avoid opting in if they have links within a multiple-column layout in your CSS, due to Known issue: hover state is mis-painted on links within CSS multiple-column layouts #2204 Now that #2204 has been fixed in Chromium, we can make the new link styles ‘opt-out’. [1]: #2350
36degrees
added a commit
that referenced
this issue
May 10, 2023
In July 2021, we made some improvements to new link styles [1] which were released as part of v3.12.0. We introduced these changes behind a feature flag `$govuk-new-link-styles: true` which service teams needed to set before importing GOV.UK Frontend in order to opt-in. This was in case users: - needed to make changes to their service to introduce these new link styles consistently - wanted to avoid opting in if they have links within a multiple-column layout in your CSS, due to Known issue: hover state is mis-painted on links within CSS multiple-column layouts #2204 Now that #2204 has been fixed in Chromium, we can make the new link styles ‘opt-out’. [1]: #2350
romaricpascal
pushed a commit
that referenced
this issue
May 18, 2023
In July 2021, we made some improvements to new link styles [1] which were released as part of v3.12.0. We introduced these changes behind a feature flag `$govuk-new-link-styles: true` which service teams needed to set before importing GOV.UK Frontend in order to opt-in. This was in case users: - needed to make changes to their service to introduce these new link styles consistently - wanted to avoid opting in if they have links within a multiple-column layout in your CSS, due to Known issue: hover state is mis-painted on links within CSS multiple-column layouts #2204 Now that #2204 has been fixed in Chromium, we can make the new link styles ‘opt-out’. [1]: #2350
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When you hover your cursor over a link, only the thickness of that link's underline should change.
However, if you have links within a multiple-column layout and your browser uses Chromium, then hovering your cursor over a link also changes the thickness of other, non-hovered link underlines.
Occasionally, the underline on some links may disappear entirely.
This issue will affect you if:
How to fix this issue
We have reported this issue to Chromium.
In the future, when Chromium fix the bug that's causing these issues, we'll turn on link styles by default.
The text was updated successfully, but these errors were encountered: