How should buttons stack on narrow screens?

Buttons should stack when their labels and required spacing no longer fit comfortably in one row. Use a flex container that wraps or switches direction at a content-driven breakpoint. Keep the primary action first in DOM order and preserve enough separation to prevent accidental taps.
.actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.actions > * {
flex: 1 1 12rem;
}
Full-width mobile buttons are useful when actions need clear targets, but they are not mandatory for every small control. Set a sensible maximum width if a single button would become visually excessive on a tablet. Let labels wrap when necessary instead of forcing truncation or reducing text below the interface scale.
Keep destructive and cancel actions distinguishable through wording and visual treatment, while avoiding CSS order that changes appearance without changing keyboard sequence. If the desktop design puts the primary action on the right, source order and mobile stacking should still lead users through a logical decision.
Test long translations, browser zoom and loading states. A spinner must not change button width enough to shift neighboring actions. Confirm that disabled controls remain understandable and that sticky mobile action groups reserve content space instead of covering the last form fields. Add this case to responsive regression tests with long content, browser zoom and at least one narrow embedded container. Record the expected wrapping and focus behavior so later component changes can be checked against a known result. Add this case to responsive regression tests with long content, browser zoom and at least one narrow embedded container. Record the expected wrapping and focus behavior so later component changes can be checked against a known result.