Skip to content

Add(CSS): touch: shorthand for touch-action property - #421

Merged
1aron merged 1 commit into
master-co:rcfrom
0Miles:feat/215-touch-action-shorthands
May 3, 2026
Merged

1aron merged 1 commit into
master-co:rcfrom
0Miles:feat/215-touch-action-shorthands

Conversation

@0Miles

@0Miles 0Miles commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Closes #215.

Summary

Adds `touch:` as the short-key prefix for the `touch-action` property, matching the convention used by `m` (margin), `p` (padding), `fg` (color) etc.

Changes

  • `packages/core/src/config/rules.ts` — adds `key: 'touch'` to the existing `touch-action` rule (one-line change)
  • `site/app/[locale]/reference/touch-action/syntaxes.ts` — show short form in documentation samples
  • New `tests/issue-215-touch.test.ts` — 11 cases (all values from the issue: auto, none, pan-x, pan-y, pan-left, pan-right, pan-up, pan-down, pinch-zoom, manipulation + long-form regression)

Testing

  • 11/11 new tests pass; 109 core test files still pass
  • Real Chrome verification via `agent-browser`: `
    ` → `getComputedStyle(...).touchAction === "none"`

@vercel

vercel Bot commented Apr 30, 2026

Copy link
Copy Markdown

@0Miles is attempting to deploy a commit to the Aoyue Team on Vercel.

A member of the Team first needs to authorize it.

@0Miles 0Miles changed the title feat(core): add touch: shorthand for touch-action, resolve #215 Add(CSS): touch: shorthand for touch-action property Apr 30, 2026
Adds touch: as the short-key prefix for the touch-action property,
matching the convention used by m (margin), p (padding), fg (color)
etc.

- One-line change in config/rules.ts: key: 'touch'
- Updates site syntaxes.ts for the reference page
- 11 test cases covering every value listed in the issue: auto, none,
  pan-x, pan-y, pan-left, pan-right, pan-up, pan-down, pinch-zoom,
  manipulation + long-form regression
- Real Chrome verification: touch:none → getComputedStyle ===
  "none"

Closes master-co#215
@0Miles
0Miles force-pushed the feat/215-touch-action-shorthands branch from 7e314cc to 0dcfa1f Compare April 30, 2026 19:03
@1aron
1aron merged commit 0909b21 into master-co:rc May 3, 2026
12 of 13 checks passed
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.

✨ touch-action shorthands

2 participants