Monday, 9 March 2020

Use a:visited in your CSS stylesheet

Evert Pot:

Unfortunately, when setting a new color (e.g. a { color: #44F }) the ‘purple visited link’ feature also gets disabled. I think this is a shame, as there’s so many instances where you’re going through a list of links and want to see what you’ve seen before.

The 2 examples I ran into today were:

• AWS Cloudwatch Logs
• Stackoverflow search results

I like those use cases. My take is that :visited is perhaps a bit under-used in general, but not by much. It's useful in that situation where a user might wonder: hmmmm, have I seen this one yet?

I'm not particularly compelled to use it on this site — as I'm not convinced it matters for the UX if you've visited any particular link, particularly not in a blog-like setting as here.

Direct Link to ArticlePermalink

The post Use a:visited in your CSS stylesheet appeared first on CSS-Tricks.



from CSS-Tricks https://ift.tt/2tPwxlr
via IFTTT

No comments:

Post a Comment

Passkeys: What the Heck and Why?

These things called  passkeys  sure are making the rounds these days. They were a main attraction at  W3C TPAC 2022 , gained support in  Saf...