fastn
fastn copied to clipboard
border-radius is not working if we added link and event
-- ftd.image: $square-button.icon
width.fixed.px: 30
height.fixed.px: 30
border-radius.px: 5
background.solid: $inherited.colors.background.step-1
background.solid if { square-button.hover }: $inherited.colors.background.step-2
padding.px: 5
;; link: $square-button.link
$on-mouse-enter$: $ftd.set-bool($a = $square-button.hover, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $square-button.hover, v = false)
Expected Behavior
The border-radius
should be present when we hover over the image. When we add link, the img
tag get replace with a
tag which is causing this issue