How a component screen works
The screens Buttons, Form fields, Controls, Cards, Badges, Links, Breadcrumbs, Block heading and Prices and manufacturer under Content → Nova → Component styles set the look of components the whole shop uses: the core’s templates, the templates of plugins with the same classes and Nova’s own parts. All nine screens edit the elements of one field of the skin, Components; Buttons and Breadcrumbs also edit a setting of their own above the elements. The screens share the layout described here. Changes go into the skin’s draft; see Skins and publishing.
The column
Section titled “The column”| Part | Content |
|---|---|
| Pickers | Skin and Sales channel, as on every screen of a skin. |
| Heading | The screen’s name and the number of the skin’s own values: “everything inherited”, “1 own value”, “n own values”. |
| Legend | inherited from parent and overridden in skin. |
| Settings | On Buttons and Breadcrumbs: a group of settings of the skin above the elements. On Cards: Ready looks. |
| Elements | The list of the screen’s elements, with the hint class in the shop. Each entry shows a sample in the element’s colours, its name, the shop classes it applies to and the number of its own values. |
| Look: element | The style field of the chosen element, with a note on what the element covers. |
The style field works as on Element styles: a State switch where the element has several states, a device switch, the settings grouped under Typography, Colours, Spacing and size, Border and shadow and Effects, and for each setting its origin and the chain button Override here / Restore inheritance. The scope reads “in the skin name”.
The side column
Section titled “The side column”| Part | Content |
|---|---|
| Preview | The screen’s samples, shown with “The same custom properties as the shop · the skin’s draft”, with the contrast of their text. |
| Where it is used: element | Under “What an edit changes”: Shop, the core’s classes the element applies to, where the Storefront’s templates use them and in how many templates (“core templates; plugins with this class too”); Nova elements, the elements of Nova’s parts that are based on this one and what they take from it (“colours and look”, “pressed scale only” or a number of settings), or “No Nova element stands on it yet.” |
| Checks | “Text against its background at least 4.5:1 to stay readable, on a page with the skin’s background”. Every element and state that falls short is listed; a click selects the element. Where nothing falls short, the screen’s confirmation is shown. |
The checks name the reason in each case:
- text: “The text has a contrast of ratio:1 against its background; it needs min:1.”,
- a placeholder: ”… it needs min:1, as it is text too.”,
- a link without an underline: ”… it needs min:1 or an underline to be recognised as a link.”,
- a frame: “The frame has a contrast of ratio:1 against the page; it needs min:1 to be seen.”,
- a progress bar: “The bar has a contrast of ratio:1 against its track; it needs min:1 to be seen.”
The preview and the checks use the values the previewed sales channel gets, including its channel layer; the column edits the values of the chosen skin.
How the elements build on each other
Section titled “How the elements build on each other”An element of a builder (a menu’s button, a footer’s link, a product page’s tab) is based on one of these components and sets only what differs. A change of a component therefore applies to every element based on it, unless that element sets the value itself. Where it is used lists these elements.