Skip to content

fix(website): Keep the new-todo text field next to its checkbox - #4252

Merged
ntucker merged 2 commits into
masterfrom
claude/project-thread-17vxxu
Oct 6, 2026
Merged

ntucker merged 2 commits into
masterfrom
claude/project-thread-17vxxu

Conversation

@ntucker

@ntucker ntucker commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Nathaniel · project thread

Motivation

In the todo demo (homepage, Getting Started › Mutations, Optimistic Updates), the "new todo" row at the bottom of each list showed only an empty checkbox. The text field had wrapped onto its own line underneath, where it looked like a divider.

Regression from #4174, which set preview checkboxes to 1rem. With its default margins a checkbox now takes about 23px, but the field's width was calc(100% - 21px), so the two no longer fit on one line.

Solution

  • When a list item's label holds a TextInput, the label lays out as a flex row and the field takes flex: 1 (with min-width: 0). The field now sits right after the checkbox and fills the rest of the row, whatever size the checkbox is.
  • Small TextInputs use the surrounding font, so typed text matches the todo titles. They used Arial before.
  • In dark mode, a hovered or focused small field used to be a near-black well with a pale outline on the lighter panel. It now gets a faint light tint, and focus uses --ifm-color-primary, the same blue as the checked checkboxes.

Only design-system.css changes. Checked in a local dev build at 1280px and 375px, light and dark, at rest, on hover and on focus. Pages: the homepage, /docs/getting-started/mutations and /rest/guides/optimistic-updates. The Collection demo (TextInput without a label) renders the same.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AmdXndvDqaKsZGyYx6hw63

The playground chrome restyle (#4174) sized preview checkboxes to 1rem, so
checkbox plus margins grew past the 21px the text field's width left for
it, and the field wrapped onto its own line under the checkbox. The row
now lays out as flex so the field fills whatever space the checkbox leaves.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmdXndvDqaKsZGyYx6hw63
@changeset-bot

changeset-bot Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a680cde

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ntucker ntucker self-assigned this Oct 6, 2026
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-site Ready Ready Preview Oct 6, 2026 7:09pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T19:11:47.376510Z a680cde New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

In dark mode the hovered or focused field was a near-black well with a pale
border on the lighter preview panel. It now lifts slightly over the panel and
focuses with the same blue as the checked checkboxes. Typed text uses the
same font as the todo titles, and the row can no longer overflow when that
font makes the input's intrinsic width larger.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmdXndvDqaKsZGyYx6hw63
@ntucker
ntucker merged commit 499ca1b into master Oct 6, 2026
5 checks passed
@ntucker
ntucker deleted the claude/project-thread-17vxxu branch October 6, 2026 19:27

This branch was successfully deployed

1 active deployment
Preview — a680cde7 Deployed Oct 6, 2026 by vercel[bot]
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.

2 participants