Skip to content

feat(core): date and time fields match text fields' height in Chromium - #7524

Draft
vjeux wants to merge 6 commits into
meta:mainfrom
vjeux:reset-date-time-fields
Draft

vjeux wants to merge 6 commits into
meta:mainfrom
vjeux:reset-date-time-fields

Conversation

@vjeux

@vjeux vjeux commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Why: Under this reset alone, native date and time fields don't match text fields. In Chromium they are 2px taller. In iOS Safari their values are centred, unlike a text field's.

What led here: One product we're moving onto Astryx hit this in its scheduling form. It restated two of Tailwind's preflight rules to fix it.

Options: Leave it to each app. Copy all of preflight's date rules: its inline-flex breaks end and centre alignment in Chromium. Its per-field padding and spin-button height change nothing. Or add only the two rules that change layout.

Why this one: It's the smallest change that reaches both engines. Chromium's 1px inset goes, so the fields match a text field's height there. In iOS Safari the value takes its field's alignment, and Safari's native look keeps its own height. Cost: iOS values no longer centre; the escape below restores that. Astryx's own date and time inputs look the same.

Visual authority

  • Existing component/module DD row reused or amended.
  • Durable component-local intent added to the optional Design decisions table by a team design owner.
  • Correction already settled by current family, design, theme, or objective accessibility authority.
  • New shared or cross-component direction settled in docs/design/.

None applies yet: no current record governs reset.css declarations; spec:AST-080 governs only its layer. The one owner decision: whether the reset should normalize these fields, including start-aligning iOS values. Until a current record holds it, the changeset is patch [feat] (spec:AST-017 FR3, DEC-17). Escape, pixel-identical to main's reset in both engines: ::-webkit-date-and-time-value { min-height: auto; text-align: center; } and ::-webkit-datetime-edit-fields-wrapper { padding-block: 1px; }.

Before and after

Text, empty date, date and time fields, styled alike, on a page with only the reset. main 3e58ae0 against this change at 6efb217. iOS 26.2 Safari (iPhone 17 Pro Simulator):

main this branch
Values centred, date and time fields 45px Values at start, still 45px

Chrome 149 (Chrome for Testing):

main this branch
Date and time fields 2px taller All one height

State matrix

  • All five types, empty and filled; text-align start, end and center; line-heights 1 to 2.5 and normal.
  • Engines: Chromium 149, iOS 26.2 Safari. Not measured: macOS Safari, RTL. Firefox lacks both parts; the rules set no color.
  • In iOS Safari, date and time fields stay 45px beside a 40px text field, under both resets.
  • At normal, Chromium's time field stays 4px taller, the others 1px.
  • Unchanged: text and number fields.

Scope

  • Appearance is the primary intent.
  • Behavior, API, interaction model, and unrelated layout changes were removed or split.
  • The evidence shows the changed pixels actively running, not only source or computed styles.
  • Public text and artifacts contain no internal Meta context.

Testing

  • By eye, in Chromium: place a text field, an empty date field and a time field side by side, styled alike. All three now share one height and one text alignment.
  • Unit check: pnpm vitest run packages/core/src/reset.test.ts --project ui passes 10 of 10. Against main's reset.css, the new check fails.
  • Browser check: pnpm exec playwright test packages/core/src/reset.a11y.chromium.spec.ts --project=chromium passes 7 of 7 in headless Chromium 149. Against main's reset.css, the new test fails: every date and time type is 42px next to a 40px text field. Per-PR CI runs Chromium only.
  • iOS: on the iPhone 17 Pro Simulator (iOS 26.2, Safari 26.2), the stills above compare the two resets on a page with only the reset. Every date and time field is 45px under both, beside a 40px text field. Safari's native look keeps box-sizing: content-box and a 29px content height, so the field's padding adds to it. The values now start at the padding instead of centring.
  • Two physical iPhone 14s (iOS 26.2, Safari 26.2), test takes, match the Simulator in nine field styles on a page with only the reset. Date and time values sit at the start padding, 13px from the field's edge, in every style; main centres them. With appearance: none, empty date and time fields keep 40px; on main they collapse to 16px. Nothing else differs.
  • Astryx's own inputs: Storybook was built from main and from this branch, and every story with a native date or time field was compared. That covered Chromium at 1280×800 and at 390×844 with a coarse pointer, plus 13 stories in the iOS Simulator. Pixels and field sizes matched, except one coarse-pointer story (DateInput's Styling parts) that also differs between two loads of main.
  • Repo checks pass: pages-landing.test.mjs, pnpm check:changesets, the coverage check, eslint --max-warnings=0, pnpm -F @astryxdesign/core typecheck and the pre-commit check:repo.
  • 6695103 merges main 3e58ae0 and regenerates the reset.css hash in the pages manifest, the one conflict. This change's own lines are otherwise unchanged.
  • 6efb217 splits the date and time fields' comment into one topic a sentence, as review suggested. It syncs the Pages copy and its hash.
  • 6c6c8cf merges main 8fdc162 and regenerates the reset.css hash in the pages manifest, the one conflict. This change's own lines are unchanged. Main's only changes to the reset are the placeholder's fallback colors, light and dark, which the stills above do not show. At 6c6c8cf, the unit and browser checks above, pages-landing.test.mjs, changesets, coverage, eslint, core typecheck, check:knowledge and check:repo pass.
  • 55d3a7f scopes the changeset and the reset's comment to Chromium's height match, with the Pages copy and its hash. At 55d3a7f, the unit and browser checks above, pages-landing.test.mjs, changesets, coverage, core typecheck, check:knowledge and check:repo pass.
  • e35172c gives each reason in the date and time fields' comment its own sentence, as review suggested, with the Pages copy and its hash. At e35172c, the unit and browser checks above, pages-landing.test.mjs, changesets, coverage, check:knowledge and check:repo pass.

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 20, 2026 12:35am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 14, 2026
@astracat-bot

astracat-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 20, 2026, 12:33 AM UTC

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be approved yet: no current knowledge record governs what reset.css normalizes, so a maintainer needs to provide or identify the governing spec, settle whether the reset should normalize native date and time fields this way (in particular start-aligning the iOS Safari value instead of centring it), and decide whether it ships as [fix] or [feat]. The new browser test covers the Chromium height change, and Astryx's own date and time fields render the same in Chromium with or without the new rules. Separately, please name in the changeset how to keep the old Chromium height (for example ::-webkit-datetime-edit-fields-wrapper { padding-block: 1px; } after the reset) and the old empty-field height in iOS, say that the fields match text fields at the reset's default line-height (a time field stays taller at line-height: normal), and rebase onto main, where the Pages copy's pinned hash now conflicts.

[Automated review]

Comment thread .changeset/reset-date-time-fields.md Resolved
@vjeux
vjeux force-pushed the reset-date-time-fields branch from 4712363 to cd07154 Compare October 20, 2026 14:15
@vjeux

vjeux commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer decision (ENGOWNER), for 12ee9a7: reset.css normalizes the parts the browser draws inside a native date or time field, so the field renders like a text field with the same author styles. In iOS Safari the value keeps one line while the field is empty and follows the field's text-align; in Chromium the row of editable fields loses its 1px block padding. No record owns the reset's individual rules: spec:AST-080 governs only its layer, and these rules sit inside @layer reset as it requires; spec:AST-038 lists changing global document resets as a non-goal. So this decision is unclaimed. Answering the review:

  1. Governing authority. The published reset.css states its job in its header: it "normalizes cross-browser inconsistencies" and "resets form elements to inherit font styles". With the same author styles, an empty date field is 29px tall in iOS Safari and 40px once a date is picked, Chromium's is 42px, and a text field is 40px in both; Chromium's date fields follow text-align and iOS Safari's do not. Those are cross-browser inconsistencies in form controls, so normalizing them is the reset's stated contract rather than a new one. Astryx's own native date and time fields already make the same choices (NativeDateField, nativePickerSegmentStyles).

  2. Start-aligning the iOS value. Decided: the value follows the field's text-align, as Chromium's date fields and every text field do. A product that wants the centred value sets text-align: center on the field, which now centres it in both engines.

  3. [fix] or [feat]. [feat], patch. The change touches appearance only, with no API, interaction or semantic change, so it is compatible (spec:AST-017 FR3, DEC-17). FR3 reserves [fix] for restoring current visual authority, a current record, and no current record governs what reset.css declares, so this is [feat] until one does. The changeset names the old look's escapes, each measured pixel-identical to main's reset in Chromium 149 and iOS 26.2 Safari: ::-webkit-date-and-time-value { min-height: auto; text-align: center; } and ::-webkit-datetime-edit-fields-wrapper { padding-block: 1px; }.

@vjeux vjeux changed the title fix(reset): date and time fields match text fields with the same styles feat(core): date and time fields match text fields with the same styles Oct 20, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be approved yet: no current spec governs what reset.css normalizes, so a maintainer other than the author needs to approve, or identify a governing spec for, the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset. In Chromium every date and time type now matches the text field's height at line-height 1.5 and above, the changeset's escape restores the old look, and Astryx's own date and time fields render the same. Once that direction is settled, nothing else blocks this patch [feat].

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be approved yet: no current spec governs what reset.css normalizes, so a maintainer other than the author needs to approve, or identify a governing spec for, the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset. In Chromium every date and time type now matches the text field's height at line-height 1.5 and above, the changeset's escape restores the old look pixel for pixel, and Astryx's own date and time fields render the same. Once that direction is settled, nothing else blocks this patch [feat]; the failing test-node check comes from packages/build/src/postcss.test.mjs and fails the same way on main.

[Automated review]

iOS Safari centres a date or time field's value and collapses an empty
field to its padding; Chromium pads the row of editable fields 1px top and
bottom. Both boxes sit inside the input, so the reset reaches them through
their pseudo-elements: the value keeps one line and follows the field's
text-align, and the row loses its block padding.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be approved yet: no current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs a maintainer other than the author to approve it, or a governing record identified or added with exact-head owner approval. In Chromium every date and time type now matches a text field's height at line-height 1.5 and above, the changeset's escape restores the old look pixel for pixel, and Astryx's own date and time fields render the same. Once that direction is settled, nothing else blocks this patch [feat].

[Automated review]

@vjeux
vjeux marked this pull request as draft October 29, 2026 22:45
@vjeux
vjeux marked this pull request as ready for review October 29, 2026 23:59
@vjeux
vjeux marked this pull request as draft October 30, 2026 03:37
cixzhang pushed a commit that referenced this pull request Oct 30, 2026
…#8381)

## User impact

**Why:** Keyboard and screen reader users lose their place when a dialog inside an iframe closes: both ways to close it (2 of 2: Escape or a button) send focus to the frame's empty page.

**What:** The dialog now returns focus to the control that opened it, with a ring after a key, none after a click. Picture-in-Picture windows were already fine.

**How to check:** In the "Dialog in a second document" story, open the frame's dialog and press Escape: focus returns to "Open dialog", with its ring.

## Problem and solution fit

What led here: we hit this moving one product onto Astryx, which renders some UI in a second window. Dialog remembers its opener as the page's `document.activeElement`, which for focus inside an iframe is the `<iframe>`. Focusing that `<iframe>` on close moves the frame's focus to its `<body>`.

Options:

- Follow the page's active element into iframes: misses Picture-in-Picture windows, which the page cannot see into.
- Always read the dialog's own document: a page control opening a dialog inside an iframe would lose focus.
- Read the dialog's own document while it has focus, else the page's: covers both. Chosen.

For the ring, Dialog tracks its own document's input, which the page never hears. Skipping its focus call would change the page, where it hides WebKit's ring after a click.

## Expected behavior and authority

`component:Dialog` (current) FR4 and AR2: closing returns focus to the element that opened it. `architecture:interaction-modality` (current) INV1: programmatic focus shows the ring only after keyboard input. Neither is page-only; #7356 fixed this for Popover.

## Smallest restoration

- `Dialog.tsx`: record the opener as above, take the entry direction from its window, return focus with its document's modality.
- Internal utils: `trackInteractionModalityIn(doc)`, counted so the last mounted Dialog removes its listeners; an optional document for `getInteractionModality`; an optional modality for `focusForLastInput`, which checks text fields against their own window. The page's tracker and other callers are unchanged.

No public API, visual or timing change.

## Evidence

- Reproduction before the change: main fails the iframe cases in Chromium and WebKit.
- Result after the change: every case passes.
- Representative unchanged path: the page Dialog passes before and after; the page's modality ignores other documents.
- Regression test or other mutation-sensitive proof: the Testing cases, red without the fix.

## Scope

- [x] One defect is restored.
- [x] Separable contradictory or unsettled tagalongs were removed or split.
- [x] No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
- [x] Public text and artifacts contain no internal Meta context.

## Testing

- Unit tests (Vitest), 115 files and 3137 tests: Dialog and every other component that returns focus or reads the last input. New cases cover a control inside an iframe, a control in the page, a text field, and the input listeners going away when the last Dialog unmounts. Each new case fails on the code from before the fix it covers.
- Browser test in Chromium, 10 cases (`DialogSecondDocument.a11y.browser.spec.ts`): the dialog in the page, an iframe and a Picture-in-Picture window, closed with Escape, with a click, and after a text field opened it, plus a page button that opens a dialog in the iframe. All pass. With the code from before the last review round (0d47027), the iframe and Picture-in-Picture text-field cases fail; with main's `Dialog.tsx`, the iframe cases fail.
- The same test in WebKit 26.5: 7 pass, and the 3 Picture-in-Picture cases are skipped, since only Chromium has that window.
- CI finds the test by its file name (#8367), and its routing line also covers its story and the two utilities. Locally, `pnpm test:a11y-contract:pr origin/main` picks it and passes 115 browser tests.
- Typecheck, repo checks, ESLint and Prettier pass. Merged with our open #7732, #8014 and #7524, typecheck and the utility tests (516) pass; #7525, #7527 and #7529 each merge cleanly with this change.
@vjeux vjeux closed this Nov 4, 2026
@cixzhang cixzhang reopened this Nov 4, 2026
@github-actions github-actions Bot removed the needs:design-review Affects visuals — Design should review label Nov 4, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on one owner decision and one description fix. No current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs an engineering owner to approve that direction or to identify the spec that governs it. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. In Chromium every date and time type now matches a text field's height at line-height 1.5 and above, the changeset's escape restores the old look pixel for pixel, and Astryx's own date and time fields render the same.

  • Regression: the Testing section says the reset.test.ts unit check passes 8 of 8, but since the merge of main that file has 9 tests and passes 9 of 9, so please update the count.
Claims and files checked

Review mode: full; reason: recipe-changed (many rules)

  • Claim: under the reset alone, Chromium date and time fields are 2px taller than a text field. Verified: 42px against 40px on the base, and the new browser test fails there.
  • Claim: in iOS Safari an empty date field collapses and values are always centred, and the change gives it one line and the field's alignment. Author-reported from the iOS Simulator; not reproducible in this review.
  • Claim: preflight's inline-flex edit row breaks end and centre alignment in Chromium. Verified in a Chromium frame.
  • Claim: Astryx's own date and time inputs look the same. Verified in Chromium for the native presentations of DateInput, TimeInput and DateTimeInput.
  • Claim: no current record governs the reset's declarations, and the stylesheet record covers only its layer. Verified.
  • Claim: the change ships as a patch [feat] with an escape for each rule. Verified; the changeset check passes.
  • Claim: the escape restores the old look pixel for pixel. Verified in Chromium; iOS is author-reported.
  • Claim: fields match a text field at line-height 1.5 and above. Verified in Chromium at 1.5, 2 and 2.5.
  • Claim: at normal, Chromium can keep a time field up to 4px and other types 1px taller. Consistent: this review measured 0.8px and 0px.
  • Claim: text and number fields are unchanged. Verified for text; number fields have neither part.
  • Claim: the unit check passes 8 of 8. False: 9 of 9 at this head.
  • Claim: the unit check and the browser test fail against the base reset. Verified.
  • Claim: the browser test passes 7 of 7 in Chromium 149. Verified.
  • Claim: the Pages landing test, changeset check, lint and Core typecheck pass. Verified; the full repository check and the coverage check were not rerun to completion.
  • Claim: the latest commit only merges main and regenerates the Pages hash. Verified.
  • File .changeset/reset-date-time-fields.md: clear.
  • File .github/pages/assets/manifest.json: clear; the hash matches the copy.
  • File .github/pages/assets/reset.css: clear; byte-identical to the package reset.
  • File packages/core/src/reset.css: the two rules wait on the owner decision; one non-blocking comment suggestion inline.
  • File packages/core/src/reset.a11y.chromium.spec.ts: clear; fails on the base, passes on the head.
  • File packages/core/src/reset.test.ts: clear; fails on the base, passes on the head.

Automated review (maintainer link)

Comment thread packages/core/src/reset.css Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on one owner decision. No current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs an engineering owner to approve that direction or to identify the spec that governs it. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The corrected test count and the reworded comment address the earlier review, and nothing else blocks.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: under the reset alone, Chromium date and time fields are 2px taller than a text field. Verified: 42px against 40px on the base, and the new browser test fails there.
  • Claim: in iOS Safari an empty date field collapses and values are always centred, and the change gives it one line and the field's alignment. Author-reported from the iOS Simulator; not reproducible in this review.
  • Claim: preflight's inline-flex edit row breaks end and centre alignment in Chromium. Verified in an earlier Chromium frame; the per-field padding and spin-button claims describe rejected alternatives and were not rechecked.
  • Claim: Astryx's own date and time inputs look the same. Verified in Chromium for the native picker modes of DateInput, TimeInput and DateTimeInput.
  • Claim: no current spec governs the reset's declarations, and the stylesheet spec covers only its layer. Verified.
  • Claim: the change ships as a patch [feat] with an escape for each rule. Verified; the changeset check passes.
  • Claim: the escape restores the old look pixel for pixel. Verified in Chromium; iOS is author-reported.
  • Claim: fields match a text field at line-height 1.5 and above. Verified in Chromium at 1.5, and at 2 and 2.5 in an earlier run.
  • Claim: at normal, Chromium can keep a time field up to 4px and other types 1px taller. Consistent: an earlier run measured 0.8px and 0px.
  • Claim: text and number fields are unchanged. Verified for text; number fields have neither part.
  • Claim: the unit check passes 9 of 9 and fails against the base reset. Verified.
  • Claim: the browser test passes 7 of 7 in headless Chromium and fails against the base reset. Verified.
  • Claim: the Pages landing test, changeset check, lint and Core typecheck pass. Verified (lint and typecheck in an earlier run, on files unchanged since); the full repository check and the coverage check were not rerun.
  • Claim: the merge of main only regenerated the Pages hash. Verified.
  • Claim: the latest commit splits the comment into one topic per sentence and syncs the Pages copy and its hash. Verified.
  • File .changeset/reset-date-time-fields.md: clear.
  • File .github/pages/assets/manifest.json: clear; the hash matches the copy.
  • File .github/pages/assets/reset.css: clear; byte-identical to the package reset.
  • File packages/core/src/reset.css: the two rules wait on the owner decision; the comment is clear.
  • File packages/core/src/reset.a11y.chromium.spec.ts: clear; fails on the base, passes on the head.
  • File packages/core/src/reset.test.ts: clear; fails on the base, passes on the head.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on one owner decision and one changeset fix. No current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs an engineering owner to approve that direction or to identify the spec that governs it; an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. In Chromium every date and time type now matches a text field's height, the escape restores the old look pixel for pixel, and Astryx's own date and time fields render the same.

  • Miss: the changeset says a date or time field now matches a text field with the same styles and that an empty iOS Safari field stops collapsing to its padding, but the description's own iOS result has every date and time field at 45px beside a 40px text field under both resets, so please scope the height match to Chromium and either name the case in which iOS Safari collapses an empty field or drop that sentence, and scope the title the same way.
Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: under the reset alone, Chromium date and time fields are 2px taller than a text field. Verified: 42px against 40px on the base, and the new browser test fails there.
  • Claim: in iOS Safari the values are centred, and the change makes them follow the field's alignment. Author-reported from the iOS Simulator; not reproducible in this review.
  • Claim: in iOS Safari date and time fields stay 45px beside a 40px text field under both resets. Author-reported; it contradicts the changeset (finding above).
  • Changeset claim: fields match a text field at line-height 1.5 and above, and an empty iOS field stops collapsing to its padding. Verified for the Chromium height at 1.5; the iOS height match is false by the description's own result, and the empty-field fix is not shown on its page (finding above).
  • Changeset claim: at normal, Chromium can keep a time field up to 4px and other types 1px taller. Consistent: an earlier run measured 0.8px and 0px.
  • Claim: preflight's inline-flex edit row breaks end and centre alignment in Chromium. Verified in an earlier Chromium frame; the per-field padding and spin-button claims describe rejected alternatives and were not rechecked.
  • Claim: Astryx's own date and time inputs look the same. Verified in Chromium for the native picker modes of DateInput, TimeInput and DateTimeInput.
  • Claim: no current spec governs the reset's declarations, and the stylesheet spec covers only its layer. Verified.
  • Claim: the change ships as a patch [feat] with an escape for each rule. Verified; the changeset check passes.
  • Claim: the escape restores the old look pixel for pixel. Verified in Chromium; iOS is author-reported.
  • Claim: text and number fields are unchanged. Verified for text; number fields have neither part.
  • Claim: the unit check passes 10 of 10 and fails against the base reset. Verified.
  • Claim: the browser test passes 7 of 7 in headless Chromium and fails against the base reset. Verified.
  • Claim: the Pages landing test, changeset check, lint, Core typecheck, knowledge check and repository check pass. Verified, except that the repository check stops at a step that needs a git repository and the coverage check was not rerun.
  • Claim: the latest merge of main only regenerated the Pages hash, and its only reset change is the placeholder's fallback colours. Verified.
  • File .changeset/reset-date-time-fields.md: the iOS wording finding above.
  • File .github/pages/assets/manifest.json: clear; the hash matches the copy.
  • File .github/pages/assets/reset.css: clear; byte-identical to the package reset.
  • File packages/core/src/reset.css: the two rules wait on the owner decision; otherwise clear.
  • File packages/core/src/reset.a11y.chromium.spec.ts: clear; fails on the base, passes on the head.
  • File packages/core/src/reset.test.ts: clear; fails on the base, passes on the head.

Automated review (maintainer link)

Comment thread .changeset/reset-date-time-fields.md Resolved
In iOS Safari, date and time fields keep Safari's native height under
the reset, so their height matches a text field's in Chromium only. The
changeset and the reset's comment now say so, and that in iOS Safari
the value follows the field's `text-align`. The Pages copy of the reset
and its hash follow.
@vjeux vjeux changed the title feat(core): date and time fields match text fields with the same styles feat(core): date and time fields match text fields' height in Chromium Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on one owner decision. No current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs an engineering owner to approve that direction or to identify the spec that governs it; an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The changeset and title now scope the height match to Chromium, which resolves the earlier wording finding, and nothing else blocks.

  • Non-blocking: the rewritten reset comment joins Chromium's padding and its result in one 27-word sentence; a shorter rewrite with one topic per sentence is suggested inline.
Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: under the reset alone, Chromium date and time fields are 2px taller than a text field. Verified: 42px against 40px on the base, and the new browser test fails there.
  • Claim: in iOS Safari the values are centred, and the change makes them follow the field's alignment. Author-reported from the iOS Simulator; not reproducible in this review.
  • Claim: in iOS Safari date and time fields stay 45px beside a 40px text field under both resets. Author-reported; consistent with the changeset now.
  • Changeset claim: in Chromium a date or time field matches a text field's height at line-height 1.5 and above. Verified at 1.5, 2 and 2.5.
  • Changeset claim: in iOS Safari the value follows the field's alignment. Author-reported.
  • Changeset claim: at normal, Chromium can keep a time field up to 4px and other types 1px taller. Consistent: 0.8px and 0px measured here.
  • Claim: preflight's inline-flex edit row breaks end and centre alignment in Chromium, and its other date rules change nothing. Rejected alternatives; not rechecked.
  • Claim: Astryx's own date and time inputs look the same. Verified in Chromium for the native picker modes of DateInput, TimeInput and DateTimeInput.
  • Claim: no current spec governs the reset's declarations, and the stylesheet spec covers only its layer. Verified.
  • Claim: the change ships as a patch [feat] with an escape for each rule that restores the old look pixel for pixel. Verified in Chromium, and the changeset check passes; iOS is author-reported.
  • Claim: text and number fields are unchanged. Verified for text; number fields have neither part.
  • Claim: the unit check passes 10 of 10 and the browser test 7 of 7, and each new check fails against the base reset. Verified.
  • Claim: the latest commit scopes the changeset, title and reset comment to Chromium's height match, with the Pages copy and its hash. Verified.
  • Claim: the earlier merges of main only regenerated the Pages hash. Verified.
  • Claim: the Pages landing test, changeset check, Core typecheck, knowledge check, lint and repository check pass. Verified, except that the repository check stops at a step that needs a git repository and the coverage check was not rerun.
  • File .changeset/reset-date-time-fields.md: clear; the earlier wording finding is fixed.
  • File .github/pages/assets/manifest.json: clear; the hash matches the copy.
  • File .github/pages/assets/reset.css: clear; byte-identical to the package reset.
  • File packages/core/src/reset.css: the two rules wait on the owner decision; the comment rewrite is non-blocking.
  • File packages/core/src/reset.a11y.chromium.spec.ts: clear; fails on the base, passes on the head.
  • File packages/core/src/reset.test.ts: clear; fails on the base, passes on the head.

Automated review (maintainer link)

Comment thread packages/core/src/reset.css Resolved
The comment on the date and time fields' rules joined Chromium's
padding and its result in one sentence, and the iOS Safari sentence
carried two topics. Each reason now has its own sentence. The Pages
copy of the reset and its hash follow.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on one owner decision. No current spec governs what reset.css declares, so the reset normalizing native date and time fields this way, in particular start-aligning the iOS Safari value instead of centring it for every consumer of the reset, needs an engineering owner to approve that direction or to identify the spec that governs it; an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The reset comment now gives each reason its own sentence, which resolves the earlier suggestion, and nothing else blocks.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: under the reset alone, Chromium date and time fields are 2px taller than a text field. Verified: 42px against 40px on the base, and the new browser test fails there.
  • Claim: in iOS Safari the values are centred, and the change makes them follow the field's alignment. Author-reported from the iOS Simulator; not reproducible in this review.
  • Claim: in iOS Safari date and time fields stay 45px beside a 40px text field under both resets. Author-reported; consistent with the changeset.
  • Changeset claim: in Chromium a date or time field matches a text field's height at line-height 1.5 and above. Verified at 1.5 and 2.
  • Changeset claim: in iOS Safari the value follows the field's alignment. Author-reported.
  • Changeset claim: at normal, Chromium can keep a time field up to 4px and other types 1px taller. Consistent: 0.8px and 0px measured here.
  • Changeset claim: the two escape rules restore the old look. Verified in Chromium, where the frame is byte-identical to the base; iOS is author-reported.
  • Claim: preflight's inline-flex edit row breaks end and centre alignment in Chromium, and its other date rules change nothing. Rejected alternatives; not rechecked.
  • Claim: Astryx's own date and time inputs look the same. Verified in Chromium for the native picker modes of DateInput, TimeInput and DateTimeInput at the previous revision; the rules are unchanged since.
  • Claim: no current spec governs the reset's declarations, and the stylesheet spec covers only its layer. Verified.
  • Claim: the change ships as a patch [feat]. Verified, and the changeset check passes.
  • Claim: text and number fields are unchanged. Verified for text; number fields have neither part.
  • Claim: the unit check passes 10 of 10 and the browser test 7 of 7, and each new check fails against the base reset. Verified.
  • Claim: the earlier merges of main only regenerated the Pages hash, and the earlier commits scoped and split the comment and changeset. Verified.
  • Claim: the latest commit gives each reason in the reset comment its own sentence, with the Pages copy and its hash. Verified.
  • Claim: at the latest commit the Pages landing test, changeset check, knowledge check, coverage check and repository check pass. Verified for the Pages landing test, changeset check and knowledge check; the coverage and repository checks were not rerun.
  • File .changeset/reset-date-time-fields.md: clear.
  • File .github/pages/assets/manifest.json: clear; the hash matches the copy.
  • File .github/pages/assets/reset.css: clear; byte-identical to the package reset.
  • File packages/core/src/reset.css: the two rules wait on the owner decision; the comment is clear.
  • File packages/core/src/reset.a11y.chromium.spec.ts: clear; fails on the base, passes on the head.
  • File packages/core/src/reset.test.ts: clear; fails on the base, passes on the head.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — e35172ca Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants