How do you make a button that doesn't change it's width when it's in a loading state?

Use CSS Grid to stack items, and visibility: hidden to hide/show spinner!

This approach allows the largest item to size the button, and keeps the button text accessible

Comments