This is the ninth post in a series examining modern CSS solutions to problems I've been solving over the last 13+ years of being a frontend develo...
For further actions, you may consider blocking this person and/or reporting abuse
"Similarly, since this button is not for a form submit, it needs the explicit role of button to prevent triggering a get request and page reload."
I think you mean for that purpose, it needs
type="button"
, notrole="button"
You are correct! I was working on this too late and got my wires crossed :) Updated, thanks!
Great article, Stephanie!
I had a question for you. I am currently working on a book about CSS and it's tentatively entitled "Modern CSS". I was not aware of your site moderncss.dev before I chose that name. If you have an issue with that, please let me know and I will gladly change the name!
You're very gracious to ask! I'll message you
Great article. Learned something new. But still from my perspective there is one missing piece to form the full picture. The icon buttons. Round and rounded corner icon buttons with svg icon. There are some gotchas with svg strokes and fills (line icons or fill icons). Etc. :)
Tnx for sharing.
EDIT: I just now realized that there is second article. :)
Hi Dzintars - the article that I wrote after this one covers icon buttons π
dev.to/5t3ph/icon-button-css-styli...
Ha, and I think there was a delay in me seeing your edit! Well either way, here's a link for folks who stop by the comments π
Great explanation!
Thanks!