CSS-Tricks / coding-fonts

https://coding-fonts.css-tricks.com/
MIT License
461 stars 67 forks source link

Respond to history changes (e.g. back button) #70

Closed maxbeier closed 3 years ago

maxbeier commented 3 years ago

Currently, the site does not respond to history changes, e.g. if a user clicks the back or forward button or navigates with the keyboard (e.g. cmd + left arrow).

With this PR, the site listens to history changes and responds accordingly.

(What I actually would like to have is a nice way to quickly toggle between two fonts to get a feeling for the (subtle) differences. With this PR, it is possible to do this by holding the command key and quickly click the left and right arrow, which is good enough for me.)

landjonathan commented 3 years ago

Good catch, thanks!

chriscoyier commented 3 years ago

Rad.