Skip to content

fix(styles): polish tables, menus, search and head titles - #10

Merged
aicayzer merged 7 commits into
mainfrom
fix/280g-polish2
Nov 29, 2026
Merged

aicayzer merged 7 commits into
mainfrom
fix/280g-polish2

Conversation

@aicayzer

Copy link
Copy Markdown
Contributor

Summary

Alpha.5 polishes the shared docs look after a design review of InkKit's site. Tables keep steady columns and stack by the width of their column, previous and next cards show their whole description, the landing menu and the docs drawer on a phone are one pattern, the search box has a Close button on phones, the copy icon is the same everywhere, and the 404 buttons match a site's main buttons. It also fixes a page title that lost its site name when it only began with the same letters, and moves the plain monospace style for a heading that is only code into the kit.

Changes

  • Tables: a table of up to five columns has a fixed layout. The first column takes 45% of a two-column table and 30% of a three-column one, so tables on a page line up. Tables sit in a docs-kit-table box and stack as entries where that box is narrower than 35rem, instead of below a screen width.
  • Previous and next cards: the description is shown whole, and the page keeps 5rem under its last card.
  • Phone menu: the docs drawer fills the screen under the top bar, the bar's menu button is the close control, the current section is bold (the current page keeps its pill), and the icon links and appearance control sit at the foot of both the drawer and the landing menu. The bar stays under the search dialog.
  • Search: below 768px the Escape chip reads "Close". Breadcrumbs start at the section, without the site name. A row that is only code is one chip that ends in an ellipsis.
  • Copy icon: code blocks use the two-squares icon.
  • 404 page: the primary button comes first, and both are 40px tall at medium weight.
  • Page titles: headTitle leaves the site name off only when the title starts with it as a whole word.
  • Headings: a heading that is only inline code draws as plain monospace text, with no chip.
  • Version 0.0.1-alpha.5, and README updated.

Testing

  • pnpm test (354 tests), pnpm types:check, pnpm build and pnpm pack:check pass, run through heavy-run.
  • Packed the kit and installed it into scratch copies of InkKit's site and of docs.marfa.so. Checked in Chromium: InkKit's Labels and Styling tables at 1440 and 768, footer cards, landing menu and docs drawer at 390, search on a phone, a code-only search row, the 404 buttons and code headings; and docs.marfa.so's Swift SDK items page and Field kinds page at 1280, and its phone drawer and a table at 390.
  • New tests were written with the change, not seen failing first. Not tested: Safari and Firefox, and dark mode beyond the unchanged tokens.

Notes for reviewers

  • A site that registers its own MDX table must keep the docs-kit-table box, or its tables stop stacking. The InkKit and docs sites do not.
  • A short-key two-column table gets a wide first column; that is the cost of every table lining up.
  • The search close button reads "Close" rather than "Cancel", so its name stays inside the dialog's "Close search".
  • Merged without waiting for the full run, as agreed for this set of changes.

Checklist

  • The title is a scoped Conventional Commit.
  • New behavior has a test that was seen failing first, or no test was needed and the reason is above.
  • Docs, comments and the contract still say what is true after this change.

@aicayzer
aicayzer marked this pull request as ready for review November 29, 2026 20:08
@aicayzer
aicayzer merged commit 3ac469e into main Nov 29, 2026
10 checks passed
@aicayzer
aicayzer deleted the fix/280g-polish2 branch November 29, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant