bitcrowd / bitstyles_phoenix

A collection of Elixir phoenix helpers for bitstyles
ISC License
12 stars 0 forks source link

Render button disabled when disabled prop is passed #84

Closed andreasknoepfle closed 1 year ago

andreasknoepfle commented 1 year ago

Currently, if we pass href navigate or patch we always render a link. But we have numerous cases where we want to disable the link as well, however the disabled prop does not make sense for links https://css-tricks.com/how-to-disable-links/.

Let's use button tags instead and disable those buttons, when the prop is passed in anyway.