-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button vs Link with role=button #61
Comments
Hi @pachacamac, TL;DR: It's a feature, not a bug. Actually both But Pico is sometimes slightly opinionated 🙂. I considered that:
I'm open to suggestions. |
Hey @lucaslarroche, Thanks for the explanation. Even though personally I would probably still prefer no difference, it makes sense from that point of view. I would just add it to the docs because there it sounds like they're 100% interchangeable:
|
Yaaaaaas 🙌🏼 I came here for this and am happy to see it already exists. I had two buttons and an anchor in a grid, under a textarea. It looked so silly because the one anchor had such a larger height. I had to use an anchor because I wanted to make use of To work around this, I needed up converting it to a button and using Reading the explanation here, I think it makes sense – but like @pachacamac said adding it to the docs to explain it would give that reasoning before trying to fight with it. |
I found that a button has a margin bottom but a link with
role=button
does not.e.g.
Is this wanted or a bug?
The text was updated successfully, but these errors were encountered: