3 ms·
What if I want the cancel button to be to the left of the submit button? This is how GitHub lays out those buttons, for instance. There's fundamentally no reaso
by alexpetros 2mo ago
What if I want the cancel button to be to the left of the submit button? This is how GitHub lays out those buttons, for instance. There's fundamentally no reason why a button's functionality should be dictated by its position on the page.
The proposal has an in-depth explanation of why this and other workarounds (like using the `form` attribute and a bunch of dangling forms) aren't sufficient.[0]
[0] https://triptychproject.org/proposals/button-actions#existing-workarounds https://triptychproject.org/proposals/button-actions#existin...
- singpolyma3 2mo agoWhat parent the button has shouldn't have any meaningful limit on how you can style it with modern CSS.