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

Add ‘no visited state' link variant #446

Merged
merged 2 commits into from
Jan 22, 2018
Merged

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Jan 19, 2018

Add an ‘no visited state' link variant which can be used where it is not helpful to distinguish between visited and non-visited links.

For example, navigation links to pages with dynamic content like admin dashboards. The content on the page is changing all the time, so the fact that you’ve visited it before is not important.

Closes #297

https://trello.com/c/BF3hYuXJ/622-add-link-variant-for-links-with-no-visited-state

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-446 January 19, 2018 17:21 Inactive
// dashboards. The content on the page is changing all the time, so the fact
// that you’ve visited it before is not important.
.govuk-link--unvisited {
&:visited {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we leave this unnested?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can, though I think there is some value in being consistent with the way the rest of the file is written, making it easier to scan. I also personally think it'd be easy to miss if it was on the same line as the class name.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah sorry, I didn't see the rest of the file in this diff.

Sounds good to me 👍

NickColley
NickColley previously approved these changes Jan 19, 2018
Add an ‘no visited state' link variant which can be used where it is not helpful to distinguish between visited and non-visited links.

For example, navigation links to pages with dynamic content like admin dashboards. The content on the page is changing all the time, so the fact that you’ve visited it before is not important.

Closes #297
@36degrees 36degrees force-pushed the add-unvisited-link-variant branch from e175475 to 1cd70ff Compare January 22, 2018 10:32
@36degrees 36degrees changed the title Add ‘unvisited link’ variant Add ‘no visited state' link variant Jan 22, 2018
@36degrees
Copy link
Contributor Author

@NickColley have changed to govuk-link--no-visited-state which I think makes more sense having talked it through with Tim. Would you mind just re-checking it?

@36degrees 36degrees dismissed NickColley’s stale review January 22, 2018 11:03

Made additional changes

@NickColley
Copy link
Contributor

@36degrees makes sense to me, a bit verbose but hopefully very clear 👍

@36degrees
Copy link
Contributor Author

Mind approving again? I dismissed your previous review.

Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Since this is a new feature would you mind adding a note in the changelog?

@36degrees
Copy link
Contributor Author

@NickColley Good shout. Done 👍

Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Nice! thanks 👍

@36degrees 36degrees merged commit 3cb40dc into master Jan 22, 2018
@36degrees 36degrees deleted the add-unvisited-link-variant branch January 22, 2018 12:44
@alex-ju alex-ju mentioned this pull request Feb 20, 2018
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.

3 participants