EllaKaye / distilltools

A collection of tools to support the creation and styling of content on {distill} websites
https://ellakaye.github.io/distilltools
28 stars 5 forks source link

Add `class` and `target` args to `icon_link()` #14

Closed jhelvy closed 2 years ago

jhelvy commented 2 years ago

I wanted to be able to create different classes for different types of link buttons, so I just moved these to the arguments, keeping the current values as defaults. Just gives the user the option to further customize.

As an example, I've used this on my research page where I have a different button class for the "details" button compared to the other buttons.

EllaKaye commented 2 years ago

Looks good! Thanks for doing this John - it's a useful improvement on the function 👍

jhelvy commented 2 years ago

Thanks! Now I can use these instead of my hacky temporary fixes :)