Revisiting :Visited(joelcalifa.com)

almost 7 years ago from Joel Califa, Senior Product Designer at GitHub

  • E BensleyE Bensley, almost 7 years ago (edited almost 7 years ago )

    Your localstorage solution is really neat and a very novel approach but in this case were there any reasons not to go with a combination of :visited and ::after to do the same thing? I'm playing with using js to create an empty span within each link tag that i can then use css to insert a check mark and make visible on visited links. I like the idea of the check marks on visited links as an aesthetic feature as well.

    3 points
    • Joel CalifaJoel Califa, almost 7 years ago

      Hey thanks so much! I felt just creating a hook rather than an entirely new DOM element was a cleaner solution, at least for the way I wanted to use it. Something like :visited:after unfortunately doesn't work on its own, due to the limitations set on :visited.

      3 points