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

[DO NOT MERGE] Suggested hover style for action link #1726

Closed
wants to merge 1 commit into from

Conversation

chris-gds
Copy link
Contributor

What?

Draft PR - conversation starter:
There was a request from Design to update a missing hover state on the action link on corona virus landing page.
Ticket: https://trello.com/c/mBN0xr04

Why?

Updating the corona virus landing page action link with a unique hover style in complete isolation is not ideal.
Users will have have a mix of hover styles even within the same page. For example, this also impacts Bread Crumbs which is also on this page.

This prompted a wider discussion, white text (while on a coloured background) + hover styles do not exists within the Component Guide and there is already an issue raised about ensuring consistent hover styles across gov.uk

As a result Design actioned a wider exploration piece to discover a colour that met AA standards and was a perceivable change within multiple contexts. The result was the solution #DDDCDB

Draft PR to prompt Frontend discussion for new hex (or possible variation of existing hex) to be absorbed into govuk-frontend or the Design System

Visual Changes

Oct-08-2020 18-24-00

Anything Else?

There's a couple possible implementation approaches

  • Close ticket, mark do not fix (issue has already been raised)
  • Update landing page insolation
  • Update action link in isolation
  • Update within all publishing_components add a new colour var to gov-frontend
  • Add to Design System $govuk-link-hover-white-text-colour: #DDDCDB

Adding a potentially global hover style colour for white text on a coloured background (discussion prompt)
@chris-gds chris-gds added question accessibility Accessibility issues identified needs design labels Oct 8, 2020
@chris-gds chris-gds self-assigned this Oct 8, 2020
@bevanloon bevanloon temporarily deployed to govuk-publis-action-lin-wt3u1b October 8, 2020 18:18 Inactive
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine, couple of nitpicks. Contrast accessibility requirements technically pass, although it's fairly close. Not sure what accessibility requirements for hover states are, but presumably they're required.

Screenshot 2020-10-12 at 08 33 20

@@ -171,10 +171,17 @@
color: govuk-colour("white");
}

&:hover {
color: #DDDCDB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a ; at the end of this line.

&:focus,
&:active {
text-decoration: none;
color: govuk-colour("black");
&:hover {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: put an empty newline before this line.

@chris-gds
Copy link
Contributor Author

chris-gds commented Oct 12, 2020

PR raised - Draft closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants