One container and one spacing rule for forms
The design system has a new container for forms. With FormFrame, sections are 24 px apart and
fields 16 px apart, the buttons sit in a footer that stays visible while the form scrolls, and a
form is one of three widths. See Forms.
- Opt-in. Forms in the web app look the same as before; none of them uses it yet.
- Keyboard. Enter in a single-line field submits, and ⌘S or Ctrl+S saves the form instead of opening the browser's Save page.
- For contributors.
FormFrametakesheader,submitLabel,secondaryActions,dirty,errorandwidth(narrow,defaultorwide);FormSectiongroupsFormFields under a title. It works on a page and insideDialogContent. The design-system gallery shows both under Forms.
