Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewModified ComponentsNumberInput (@astryxdesign/core) · View in Storybook
Component Size
Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included. Bundle Size SummaryGzip figures measure each package's entry file, not the code an import pulls in.
Accessibility AuditStatus: No accessibility violations detected. Visual Regression48 of 502 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 28 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
The selection and callout opt-outs restore a working press on iOS Safari, but approval waits on an engineering owner's decision about touch-action: manipulation, which turns off double-tap zoom over the steppers: no current spec covers it and the evidence only shows held presses, so an engineering owner needs to provide or identify the governing spec, recorded by commenting /approve-spec <full head SHA> on this pull request (you can do that yourself as an engineering owner), or the PR can drop it along with the changeset's double-tap sentence. Either way, the new Chromium spec still passes with WebkitUserSelect: 'none' or WebkitTouchCallout: 'none' deleted, because Chromium computes user-select from either spelling and ignores -webkit-touch-callout, so please pin those two declarations the way ContextMenu.test.tsx pins the ContextMenu trigger's.
[Automated review]
| WebkitTouchCallout: 'none', | ||
| WebkitUserSelect: 'none', | ||
| userSelect: 'none', | ||
| touchAction: 'manipulation', |
There was a problem hiding this comment.
touch-action: manipulation turns off double-tap zoom over the steppers. No current spec covers that, and the PR's evidence only covers held presses, which the selection and callout opt-outs fix. An engineering owner needs to adopt it (for example by commenting /approve-spec <full head SHA>), or this line and the changeset's double-tap sentence can go.
| const column = page | ||
| .getByRole('button', {name: 'Increment Quantity'}) | ||
| .locator('..'); | ||
| await expect(column).toHaveCSS('user-select', 'none'); |
There was a problem hiding this comment.
Chromium computes user-select: none from either spelling and drops -webkit-touch-callout, so this stays green if WebkitUserSelect: 'none' or WebkitTouchCallout: 'none' (NumberInput.tsx:163-164) is deleted, even though those are the declarations iOS Safari applies in the shipped CSS. Pinning them the way ContextMenu.test.tsx pins the ContextMenu trigger's would make the fix mutation-sensitive.
There was a problem hiding this comment.
Pinned in 8b8aee4: NumberInput.test.tsx asserts WebkitTouchCallout, WebkitUserSelect, userSelect and touch-action in the column's source, and deleting either prefixed declaration fails it. The spec header now says what Chromium can observe. The branch is also rebased on main (c743ae0), so the pr-a11y step finds the ReorderGripPinchZoom spec it runs.
cb84a8d to
8baed91
Compare
There was a problem hiding this comment.
The selection and callout opt-outs restore a working held press on iOS Safari, but approval waits on an engineering owner's decision about touch-action: manipulation on the stepper column, which turns off double-tap zoom there and has no governing spec yet: an engineering owner can adopt it by commenting /approve-spec <full head SHA> on this pull request (you can do that yourself as an engineering owner), or the PR can drop it along with the changeset's double-tap sentence. Independently, the new Chromium spec still passes with WebkitUserSelect: 'none' and WebkitTouchCallout: 'none' removed, because Chromium reads the unprefixed user-select and the Storybook build autoprefixes it while the published astryx.css does not, so please add a guard on those two declarations (as ContextMenu.test.tsx does for the ContextMenu trigger) and narrow the spec header to what Chromium can observe. The red pr-a11y check comes from main's newer ReorderGripPinchZoom step, whose spec this branch predates, so a rebase on main should clear it and let the new step run.
[Automated review]
In iOS Safari (26.2, measured), a finger resting on a number stepper for about half a second selected the nearest text, the field's label, and opened the edit menu over the field; the tap that would have stepped was lost. The stepper column now opts out of text selection and the touch callout, and takes touch-action: manipulation, so rapid taps cannot double-tap zoom the page while pans and pinch-zoom stay the browser's.
8baed91 to
8b8aee4
Compare
There was a problem hiding this comment.
The selection and callout opt-outs restore a working held press on iOS Safari, and the new source guard covers the two declarations Chromium cannot see. Approval waits on an engineering owner's decision about touch-action: manipulation on the stepper column, which turns off double-tap zoom there and has no governing spec yet: an engineering owner can provide or identify that spec by commenting /approve-spec <full head SHA> on this pull request (you can do that yourself as an engineering owner), or the PR can drop the declaration along with the changeset's double-tap sentence and the matching test expectations. Nothing else blocks this change.
[Automated review]
ci.yml takes main's: main discovers every *.a11y.chromium.spec.ts (meta#8367), so the NumberInput stepper-press spec needs no step of its own.
There was a problem hiding this comment.
The selection and callout opt-outs fix the held-press failure recorded in iOS Safari, and the source guard and Chromium spec cover what CI's browsers can see. Approval waits on an engineering owner's decision, because no current spec covers two things this change adds: spec:AST-094 FR41 suppresses selection only for the press on elements whose hold does something and leaves other elements, such as these steppers, to their own record, which NumberInput does not have, and FR18 gives touch-action: manipulation only to elements with touch recognizers. An engineering owner can adopt both as shipped by commenting /approve-spec <full head SHA> on this pull request (you can do that yourself as an engineering owner), or name the spec claims that govern them. Nothing else blocks this change.
[Automated review]
| WebkitTouchCallout: 'none', | ||
| WebkitUserSelect: 'none', | ||
| userSelect: 'none', |
There was a problem hiding this comment.
spec:AST-094 FR41 suppresses selection and the callout only for the press, on elements whose hold does something, and sends any other element to its own record. These steppers' hold does nothing and NumberInput has no record, so these always-on opt-outs need an engineering owner's decision (/approve-spec <full head SHA>) or a claim that governs them.
|
Closing in favour of #8205, so the stepper's touch behavior is decided in one place. This pull request's only change was the stepper column's touch styles (no text selection, no callout, |
…tracker's selection lock spec:AST-094 FR41 names a stepper's hold-repeat: its press suppresses text-selection start and the callout for that press only, lifted at the lift or a cancel. The stepper's press tracker now passes `lockSelection` (meta#8336's opt-in), so a held finger no longer selects the field's label in iOS Safari. The browser lock test runs again, and a jsdom test proves the column is locked while the finger is down and unlocked at the lift. The press layer reads the two rows it uses, `UIKIT_PRESS` and `UIKIT_CLICK`, rather than the whole gesture table (component-style-authoring INV6). meta#8202 is closed into this pull request, so its changeset folds into this one's: the hold's changeset says a held finger selects no text.
User impact
On a phone, a finger resting on a NumberInput stepper for about half a second selects text instead of pressing the button: Mobile Safari selects the nearest word, the field's label, opens the edit menu over the field, and the step is lost. On an iPhone 17 Pro simulator (iOS 26.2), 1.0 s and 1.6 s holds on + both selected "Quantity" and stepped nothing. Now the 1.0 s hold steps once, and no hold selects anything.
Problem and solution fit
Expected behavior and authority
family:input-fields(current) leaves the stepper end content to NumberInput (AV2);architecture:interaction-modality(current) INV4 requires an operable touch path. No record or doc promises text selection on the steppers.Smallest restoration
NumberInput.tsx: the stepper column takesuser-select: none,-webkit-touch-callout: noneandtouch-action: manipulation. Panning and pinch-zoom stay the browser's;manipulationonly drops double-tap zoom, so quick taps are not read as a zoom. The field itself stays selectable.Evidence
iOS 26.2 simulator, Mobile Safari, real touches,
mainbeside this branch. Each panel shows the screen's top, where Safari's magnifier appears, and its bottom, where a keyboard would rise (Safari's address text masked); the page draws a finger ring and a touch clock:main.Scope
Testing
pnpm vitest run --project ui packages/core/src/NumberInput(324): NumberInput.test.tsx pins the column'sWebkitTouchCallout,WebkitUserSelect,userSelectandtouch-actionin source, which Chromium cannot observe (it reads only the unprefixed property and ignores the callout); deleting either prefixed declaration fails it.pnpm storybook:build, thenpnpm exec playwright test NumberInput.stepper-press --config playwright.config.ts --project=chromium(4 tests; the style test fails againstmain's build). CI's discovery lists it (node .github/scripts/a11y-contract-shard.mjs --shard 1/1).pnpm exec vitest run --project node .github/scripts/ci-test-routing.test.mjs .github/scripts/release-check-workflow.test.mjs(104 tests), on main c743ae0.pnpm -F @astryxdesign/core typecheck; eslint and prettier on the touched files.mainand this branch, recorded and logged: 1.0 s and 1.6 s holds on +, and a 100 pt drag up from + held still before the lift, so the field stays in view.the stepper column opts out of text selection and double-tap zoom, GIF 1); 1.6 s hold (Chromiuma finger held 1.6 s, longer than a tap, selects nothing, GIF 2: Chromium does not select on a long press and still clicks after it, so the simulator recording proves the iOS outcome); drag up (Chromiuma vertical drag that starts on a stepper scrolls the page and steps nothing, GIF 3); tap (Chromiuma tap on a stepper still steps the value).