Skip to content

0.53.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 19 Nov 18:23
· 2 commits to main since this release

Added

  • A menu link brings its own fields. Give a menu an icon or a description field, and a Repeat over the menu reads them on each link (item.icon, item.description), beside its label and address: quick links with an icon, a mega menu with a line under each link.
  • Every part of a form is a class of its own under Design → Styles → Forms, styled with the same controls, states and live sample as every other class: All Fields and All Choices (what every field and every checkbox, radio button and switch share), Text Field, Text Area, Dropdown, Checkbox, Radio Button, Switch, Option Text, Label, Help Text and Error Message. A field's State menu has Invalid, Disabled and Placeholder, a choice's Checked, and the sample shows each. A dropdown's Arrow, a checkbox's Check Mark, a radio button's Dot and a switch's Track (with a Border, a line around it that keeps the knob centred) and Knob (with a Color When On) have controls of their own.
  • Labels inside or beside their fields. Styles → Forms → Label → Position: Above (as before), Beside (in a column of a width you set, above again on a phone) or Inside, where the placeholder is until the field is clicked into or filled in, when the label moves above it. In a stylesheet: .cms-field { @apply label-inside; }.
  • Groups inside groups, in any order. Every group of Styles, Elements, Forms and Articles included, takes groups of its own (New Group), and its rows and groups are dragged into another order, or into a group; Move to Group… in a row's menu does the same without dragging. The groups of Styles are dragged into another order too. It is saved with the styling, in its versions, and agents set it with styling/update (arrangement).
  • One way to make a style, in any group. New Style asks what it styles: a Class blocks wear, an Element (a table, an image, a list, a code block, a highlight and more) or an ID, the one block with that id, and which group it goes in. A style you make is renamed, duplicated, moved to another group or deleted the same way whatever it is; what the site was given stays in its group.
  • Menu Button block. A button that opens and closes a menu, with lines that turn into a cross: choose how under Animation (Cross, Squeeze, Spin or None), with two or three lines and a label that can show or only be read aloud. It follows its menu from the interaction that opens it (aria-expanded), so the label stays put and only the icon moves, and it holds still for visitors who ask for less motion.
  • Search Field and Search Results blocks, for sites people mostly search. The field goes on any page, looks like the site's other fields and buttons, is a search landmark named by its label (so the header's and the page's are told apart), and sends what was typed to the results page (/search unless you pick another), also without JavaScript. The results page finds every word typed, the start of a word as well ("recycl" finds "recycling"), with or without accents, puts title matches first, and shows each result's kind, date and a snippet with the words marked. Filters by kind of page ("Service", "News") show when the results have more than one, Show More Results adds the next ones, and screen readers hear how many were found. On a site in several languages it finds pages in the page's own language.
  • The site's search index (/search.json) says more of each page: its kind (its collection's name for one entry), its date for a dated collection, and the words of a field named keywords when its collection has one, so a page on waste collection can also be found as "bin".
  • Upcoming and past lists. site.today is the day a page is built on: a Repeat of events whose starts is more than {site.today} lists only what is still to come, and its page is built again when the day turns.
  • A to Z lists. The filter initial gives the letter a value is filed under (item.title|initial: capital, without accents, # for a digit). Group a Repeat by it, and the letters run from A to Z.
  • Filter a list grouped from A to Z. In a List Filter, a Repeat grouped by letter filters the items inside its letters: a letter with nothing left hides, the choices count items, not letters, and a sort orders each letter on its own.
  • Map block. An open map with pins, drawn from vector tiles in the browser: no account, no key and no cookies (OpenFreeMap's tiles of OpenStreetMap). Pick a style from nine presets — Site Colors (the default, painted in your design's colors and following its color schemes and dark mode), Light, Dark, Streets, Bright, Night, Gray, Pastel and Blueprint — and set its land, water, park, road, label and pin colors yourself. Each Place in it is a pin with a name, details, a link and a directions link, and a Repeat inside a Map makes one per item, so a map of every campus or office follows its collection. People who don't see the map get its places as text, a still map is one switch away, scrolling the page never zooms it, and the map loads only when it scrolls near. The builder shows it as the site will.

Changed

  • Long-form text has a calmer rhythm by default. Its spacing is measured in the size of its text, not in the size of each heading, so a large heading no longer pushes itself apart. The gap under a heading is now at least the gap between paragraphs (it used to be smaller, so headings stuck to their text), with about twice that above it; new defaults are --prose-blocks: 1.25em, --prose-headings: 2.25em, --prose-after-headings: 1em and --prose-items: 0.5em. A site that sets its own keeps them, now measured the same way. Tables read at a line height of 1.5.
  • Classes is now Styles, under Design: it holds classes, elements and IDs alike. Its old address leads there.
  • Breaking. Form fields are styled with classes, part by part, in @layer components (.cms-input, select.cms-input, input.cms-check, .cms-label…). The kernel's own look of a field weighs nothing now, so any rule of the site wins over it. The --field-* properties still work as the defaults, and a site's own on :root show under Code.
  • Styles → Articles → Article styles long-form text as a whole, with its spacing under Text Spacing.
  • A new preview under Styles. It stands at the top of the editor, above State and Classes as the canvas stands over a block's Design tab, from edge to edge on the page's own background, as tall as what it shows with even room around it, instead of a fixed box that shrank it.
  • Component pictures show what goes in them. In the components list, the inserter and Start From a Component, a property with nothing in it shows its name in a muted color and an empty image a neutral picture, as the canvas does, so a card made to be filled in no longer looks blank. A component's picture in the list is also as tall as the component, instead of a thin strip.
  • Component pictures show the whole component, at a size you can read. In the components list, the inserter and Start From a Component, each picture is drawn at the width where it reads largest and fits whole: a card as wide as a column, a row of a list readable, a header across a window, with some room around it. They used to be drawn across a desktop window, so a card's photo filled the picture and its title was cut off.
  • Plugins is in the main sidebar, below Analytics, instead of under Settings.
  • Breaking. The Embed block no longer shows Google Maps: a map is a Map block now. An Embed with a Google Maps address shows nothing until it is replaced by one.
  • A select field shows its option's label on a page and in a list's filter, search and sort: Test or scan, not test. It still equals its stored value, so entry.kind|is:test and classes that follow it keep working, and entry.kind.value gives the value itself.
  • A site's own dates move with it. When a site is applied, its entries' date and date range fields that were ahead of its making are still ahead now, as their publication dates already were. They move by whole weeks, so a Saturday market stays on a Saturday and an evening class keeps its hour: an event in a site made a month ago is still to come, on the same day of the week.

Removed

  • Breaking. The Search block is gone, and with it the search box that opened over the page and its ⌘K shortcut on the site. ⌘K belongs to the admin. A page that had a Search block shows nothing in its place: put a Search Field there instead and a page with Search Results at /search, the address the field sends people to.

Fixed

  • A file field's Choose File button sits in the middle of the field, as far from its line above, below and to the left (--field-file-inset), also where the browser rounds the field's line to a whole pixel.
  • A pinned item no longer lights up for a moment when you open Content, Design or Structure. The sidebar marked the screen being opened while the one before was still on view; it now marks only the screen you see.
  • The hidden “Skip to content” link no longer shows a faint shadow along the top of every page: it casts one only once it is focused.
  • Applying a site’s design again keeps its components synced. A component the site brought in a newer version came in as a copy, so the pages that use it showed it without its text. A field the site leaves out now gets its default, as when the site was first applied.
  • A menu's panels no longer flash over the page as it loads. Each panel of a Menu behavior used to fade out once when the page started; it is hidden from the start now, and still fades in and out when it opens.
  • A table wider than the screen can be scrolled from the keyboard too: its frame takes the focus, and a screen reader names it by its caption, without adding a landmark for every table.
  • A List Filter takes its choices from the list it filters, also when another Repeat comes first inside it, such as a row of letters to jump to: the choices were missing.
  • A filtered list stays one list item deep. An item that is a list item itself now carries the filter's marks, instead of being wrapped in a second list item.
  • A filter's counts are easier to read: the number beside each choice had too little contrast for WCAG AA.
  • A site that names its own favicon in its settings is applied: the picture is brought before the setting is checked.
  • A new site speaks the language of the site it starts from. A site in Dutch alone now installs with Dutch as its main language, its pages at the root, instead of English with the Dutch pages under /nl.