Links With Visited State
Default links are always displayed in blue, regardless of whether the user has or hasn't already visited the linked resource.
If you need to give users an explicit hint about which of your links they've already been to, you can activate the violet
visited state with the link-visited
class.
Usage
To make an individual link show a visited state, apply the link-visited
class to it.
You can also give a visited state to multiple links by applying the class to a common ancestor element.
Note: When using the nested version, it is always a good idea to apply the link-visited
class as
precisely as possible to avoid unintended side effects with non-standard links.
Buttons (anything with button
in the class name) and disabled links (disabled
) are
specifically excluded from this behavior. Any other special links may end up looking buggy.