DEV Community

loading...

Discussion on: CSS Button Styling Guide

Collapse
alohci profile image
Nicholas Stimpson

"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", not role="button"

Collapse
5t3ph profile image
Stephanie Eckles Author

You are correct! I was working on this too late and got my wires crossed :) Updated, thanks!

Forem Open with the Forem app