-
Notifications
You must be signed in to change notification settings - Fork 335
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
Conversation
src/globals/scss/core/_links.scss
Outdated
// 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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 👍
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
e175475
to
1cd70ff
Compare
@NickColley have changed to |
@36degrees makes sense to me, a bit verbose but hopefully very clear 👍 |
Mind approving again? I dismissed your previous review. |
There was a problem hiding this 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?
@NickColley Good shout. Done 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! thanks 👍
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