betagouv / dsfr-view-components

Composants Rails pour le DSFR
https://betagouv.github.io/dsfr-view-components
MIT License
31 stars 4 forks source link

component: Button #150

Closed adipasquale closed 1 year ago

adipasquale commented 1 year ago

cf #62

icons are broken in the guide but i think it’s okay, I’ll double check

image

freesteph commented 1 year ago

I was hoping we could implement this as dsfr_button_to, the GOV.UK way which we've followed for links. Did you look into it?

adipasquale commented 1 year ago

nope @freesteph I have not looked into it but I don’t think it’s incompatible, do you ? we can always implement the dsfr_button_to helper later, no ? even if it means refactoring this button component I don’t think we can get away without a Button component though, the same way we got away without a Link component. Buttons are used in other contexts than the button_to rails helper allows for

adipasquale commented 1 year ago

let me know if that works with you @freesteph because the modal one is dependent on this one and I started using dsfr-view-components with the modal branch on collectif objets :)

freesteph commented 1 year ago

Okay cool. I'll look into the helper form at some point.