The most common reason a form feels cheap is that it moves. A button says "Save", you click it, it says "Saving..." and gets narrower, and the button next to it slides left. Here is the small set of rules that stopped that across every form in CogniPrep Assess.
The forms are live if you want to poke at them: request a demo and contact support both use them.
Hold both labels in one cell
The old pattern was {pending ? 'Saving' : 'Save changes'}. The button's width follows its text, so it changes on every click. The fix is to render both labels in the same grid cell and hide one with visibility, so the button always has the width of the longer label:
<span className="grid justify-items-center"> <span className={cn('col-start-1 row-start-1', pending && 'invisible')}>{children}</span> <span className={cn('col-start-1 row-start-1', !pending && 'invisible')}>{pendingLabel}</span> </span> invisible keeps layout, hidden does not, and that difference is the whole trick. The call sites got shorter too: pending and pendingLabel replaced a ternary and a separate disabled expression, and the button sets aria-busy itself.
Errors take the hint's place
Field errors used to appear underneath a field, pushing everything down. Now the error replaces the hint line that was already there, so the field's block keeps its height. Server errors on the sign-in forms became toasts, the way the rest of the app already did it.
Confirmations keep the form's height
When a form is swapped for a "thanks, we have it" panel, the panel is given the height of the form it replaces. The page below does not jump up the moment someone presses send, which is also the moment they are looking at the screen.
The page itself
Three lines of CSS did a lot:
html { scrollbar-gutter: stable; } body { overflow-x: clip; overflow-wrap: break-word; } -
scrollbar-gutter: stablekeeps room for the scrollbar whether or not the page scrolls, so nothing shifts sideways when content grows past the screen or a dialog opens. -
overflow-x: cliprather thanhidden, becausehiddenmakes the body a scroll container and breaks sticky headers. Clip just clips. -
overflow-wrap: break-wordstops a long email address or link from pushing the page wider. Email addresses are everywhere in a hiring product.
Touch targets in the same place
Buttons carry pointer-coarse:min-h-11 on every size, so on a touch screen they are at least 44px tall without each screen having to remember. Putting it in the one button component is what makes it stay true.
How I found these
I did not hunt for layout shift in code review. I used the forms in a browser, clicked everything, and watched for anything that moved. The fixes were then made in the shared components, so the next form gets them free.
If you want a short list to copy: both labels in one cell, errors in the hint's place, confirmations at the form's height, a stable scrollbar gutter, and clip over hidden. The accessibility page covers the settings candidates can choose for themselves on top of this.