twostraws / Ignite

A static site generator for Swift developers.
MIT License
1.71k stars 94 forks source link

Feature Cursor change on hover #112

Closed markstamer closed 1 month ago

markstamer commented 2 months ago

What is missing

In case of using onClick instead of a link or button the cursor does not change to a hand to indicate that something is clickable.

How we could add it

There seems to be a simple style one could use .style("cursor: pointer") to archive this. I can imagine a Cursor type and to directly use this as a parameter for the onClick method or just as a modifier like func cursor(_ cursor: Cursor) -> PageElement.

Any thoughts?

twostraws commented 1 month ago

I think func cursor(_ cursor: Cursor) -> PageElement is exactly correct 👍

markstamer commented 1 month ago

All right, will make a PR at times.