Form fields and controls
The screens Form fields and Controls under Content → Nova → Component styles set the parts a customer types into or chooses with. Both work as described on How a component screen works.
Form fields
Section titled “Form fields”The screen Content → Nova → Component styles → Form fields sets the fields the core’s form components render.
| Element | Class | States | Note |
|---|---|---|---|
| Field | .form-control · .form-select | Normal, Hover, Focused | Text field, list and text area. |
| Field label | .form-label | Normal | The label above a field; a required field’s asterisk always has the error colour. |
| Checkbox | .form-check-input | Normal, Hover, Current | Checkbox and switch. |
| Field hint | .form-text | Normal | The text under a field, such as the password’s requirements. |
The height of Field is the control height M (44 px) of Content → Nova → Variables → Grid and spacing. The core’s small and large fields and the grouped ones (the header’s search, a price from – to) keep their own. Focused is the state a field has after a click, not only from the keyboard. The placeholder is text, so the checks measure its contrast too.
A field in error (border, message, asterisk) takes the error colour of the skin, without a setting of its own.
The fields are used in login, registration, addresses, profile, password, checkout, CMS forms and the newsletter. The core header’s search and the number of a quantity field do not take the look of Field: the search keeps the core’s rules, the quantity takes Quantity field of the screen Controls.
Controls
Section titled “Controls”The screen Content → Nova → Component styles → Controls sets the controls of the product page and the shared strips and bars.
| Element | States | Note |
|---|---|---|
| Option tiles (sizes) | Normal, Hover, Current | Sizes and other text options of a variant. Hovered and chosen, they fill with the text colour; hovered, a tile lifts with its lift shadow. An option that cannot be chosen has a dashed frame on a dimmed ground, a diagonal line and does not lift. |
| Colour swatches | Normal, Hover, Current | Colours and pictures of a variant. The chosen one gets a ring off its edge; one that cannot be chosen has a dashed edge, is dimmed and struck through. |
| Quantity field | Normal, Focused | − and + and the number in one frame. Its height is the control height L; with the keyboard in it, the frame takes the focus colour. |
| Tabs | Normal, Hover, Current | A tab of a strip: the product page’s tabs block and the cross-selling’s tabs, also in the cart. The current tab is underlined. |
| Progress bar | Normal | How far the cart is from free shipping, how many products of the listing are shown, and the ring of the back to top button. The fill needs a contrast of 3:1 against the track. |
The product page’s variant options and colour swatches take these values until the element styles of a product page override them. The product page’s own tab element is based on Tabs and sets only what differs. The carousel’s autoplay bar keeps its own look.
The options of the product card and of the quick add, the sizes and colours of the filters and the quantity fields of the product card and of the cart are based on these elements too; each place keeps its own size and sets only what differs.