Anatomy
A label, one row of controls, and a message. The row has no gap: the boxes touch.
- Square appearance. A field keeps its bottom rule and a button its fill, as anywhere else. Only the height is shared.
- Rounded appearance. The row reads as one capsule. The outer corners keep the control radius, the inner corners where two boxes meet are squared, and the two borders that touch overlap into one line.
Focus
Each control draws its own focus ring inside its own box, so only one ring shows at a time. The control with focus is raised above its neighbours, so the border they overlap never covers its ring.
Phones
The row stays one row at every width. The field shrinks and the buttons keep their size, because a button wrapped under its field no longer reads as part of it. Prefer an icon-only button with a label when the row is narrow.