fjvallarino/monomer

[Bug] Changing cursor using `styleHover` for a button sets that cursor for all buttons

Closed this issue · 2 comments

Example:

vstack [
  flip button ButtonClick ("Click count: " <> showt (model ^. clickCount)
    `styleHover` [cursorHand]
, spacer
, flip button ButtonClick ("Click count: " <> showt (model ^. clickCount)
]

Happens even if a different onClick event is used.

By default, buttons have a hand cursor on hover (defined in the base theme). Considering this, setting cursorHand does not cause an effect (both buttons already have it). You can try using cursorInvalid, or any of the other cursors, to validate it works as expected.

That is indeed the case. I don't know why I did that. Sorry for the noise.