@aitrien/motifspec 1.27.1 → 1.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Every release of MotifSpec (named brand-codex until 1.10.0), newest first. Entries before 1.10.0 keep the names they were released under. Versions follow the rules in `CONVENTIONS.md`: renaming or removing a semantic token is major, adding tokens, components or icons is minor, and changing a value or fixing a description is a patch. `npm run build` fails if the version in `package.json` has no entry here.
4
4
 
5
+ ## [1.27.2] - 2026-12-06
6
+
7
+ ### Fixed
8
+ - Header nav links are 40px tall (`size.target.control`), the same as the search field, so a docs header's links and search line up. Their side padding is unchanged.
9
+ - A focused nav link's focus ring is no longer cut off at the top and bottom. The nav list scrolls sideways when it has to, which clipped the ring; it now keeps room for the ring inside it, without moving the links or changing the header's height.
10
+
5
11
  ## [1.27.1] - 2026-11-19
6
12
 
7
13
  ### Fixed
package/dist/codex.css CHANGED
@@ -2,7 +2,7 @@
2
2
  @font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
3
3
  @font-face { font-family: "Yarndings 12"; src: url("../fonts/yarndings-12-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
4
4
 
5
- /* MotifSpec 1.27.1 — generated from tokens/*.json. Do not edit.
5
+ /* MotifSpec 1.27.2 — generated from tokens/*.json. Do not edit.
6
6
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
7
7
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
8
8
  :root {
@@ -833,12 +833,18 @@ p, li, dd, figcaption { text-wrap: pretty; }
833
833
  /* A relative offset, not a margin: it moves the links without changing the row's width, so it can't change whether
834
834
  the header wraps. */
835
835
  .cx-header[data-wrapped] .cx-nav { position: relative; inset-inline-start: calc(var(--_nav-pad) * -1); }
836
- .cx-nav ul { display: flex; gap: 0 var(--cx-space-inline-xs); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
836
+ /* The list scrolls sideways when it has to, which clips whatever is drawn outside it. Its padding is as wide as the
837
+ focus ring and its offset, and a matching negative margin keeps it in place, so a focused link's ring shows whole. */
838
+ .cx-nav ul {
839
+ --_ring: calc(var(--cx-border-focus-width) + var(--cx-border-focus-offset));
840
+ display: flex; gap: 0 var(--cx-space-inline-xs); margin: calc(var(--_ring) * -1); padding: var(--_ring);
841
+ list-style: none; overflow-x: auto; scrollbar-width: thin;
842
+ }
837
843
  .cx-nav li { flex: none; }
838
844
  .cx-nav a {
839
845
  /* Halfway between inset-sm and inset-md, so Work, Writing, About, the pause control and the toggle fit one row on a
840
- 360px phone; narrower than that, the list scrolls inside its row. */
841
- display: inline-flex; align-items: center; min-height: var(--cx-size-target-touch); padding-inline: var(--_nav-pad);
846
+ 360px phone; narrower than that, the list scrolls inside its row. As tall as the search field beside it. */
847
+ display: inline-flex; align-items: center; min-height: var(--cx-size-target-control); padding-inline: var(--_nav-pad);
842
848
  border-radius: var(--cx-radius-pill); color: var(--cx-color-text-secondary); text-decoration: none; font-weight: var(--cx-font-weight-ui);
843
849
  transition: color var(--cx-motion-duration-fast) var(--cx-motion-easing-standard), background-color var(--cx-motion-duration-fast) var(--cx-motion-easing-standard);
844
850
  }
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* MotifSpec 1.27.1 — generated from tokens/*.json. Do not edit.
1
+ /* MotifSpec 1.27.2 — generated from tokens/*.json. Do not edit.
2
2
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
3
3
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
4
4
  :root {
package/dist/tokens.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by npm run build. Do not edit.
2
- export const version = "1.27.1";
2
+ export const version = "1.27.2";
3
3
  export const changelog = "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md";
4
4
  export const showcase = "https://motifspec.com";
5
5
  export const tokens = [
package/dist/tokens.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.27.1",
2
+ "version": "1.27.2",
3
3
  "changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
4
4
  "showcase": "https://motifspec.com",
5
5
  "tokens": [
@@ -188,7 +188,8 @@ Copy the snippet as it is: the build fails if this doc and `js/theme-init.js` di
188
188
 
189
189
  - The skip link is the first focusable element and targets `<main id="main">`.
190
190
  - `<nav aria-label="Main">`; only one nav per page uses that label.
191
- - Nav links, the toggle and the menu control are 44px (`size.target.touch`); the toggle is a pill with equal sides, so it renders as a circle.
191
+ - Nav links are 40px (`size.target.control`), the height of the search field, so the two line up in a docs header. The toggle and the menu control are 44px (`size.target.touch`); the toggle is a pill with equal sides, so it renders as a circle.
192
+ - The nav list scrolls sideways when it's too long for its row, and keeps room for the focus ring inside it, so a focused link's ring isn't cut off.
192
193
  - The menu's control is named "Menu" (`aria-label` on its summary), and its icon changes to a cross while it is open; "On this page" is named by its text. Both are `<details>`, so Enter or Space opens them without script, and the browser announces whether they are expanded.
193
194
  - While the menu is open, the page behind it doesn't scroll. With `dist/codex.js`, Escape closes an open menu or panel and returns focus to its control.
194
195
  - The toggle's `aria-label` is its action ("Switch to light theme"); the visible tooltip repeats it and is `aria-hidden`. Escape hides the tooltip without moving the pointer (see `tooltip.md`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitrien/motifspec",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "Liam Marshall's design system: DTCG tokens and layered component rules that AI assistants read a layer at a time, with generated CSS, Hugo templates and a rule checker.",
5
5
  "keywords": [
6
6
  "design-system",