You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e01d233
Browse filesBrowse the repository at this point in the historyBrowse files
[feat] Under a finger, on every touch device (iOS and Android alike), a ContextMenu opened by a held finger now presents as iOS 26's does. A copy of a block trigger lifts out of the page, the trigger hidden under it: it grows on from the press to 26 px larger on its longer side (15% at most), with the theme's high shadow fading in under it, over a light tint, and it stays 16 px from the screen's sides and 20 px (plus the safe area) from its top and bottom. A tap on the tint closes the menu. The menu sits 16 px from the copy, below it when it fits and above it otherwise, centered on it or flush with the edge it is held against (right-to-left pages included), and its content enters from a blur, with no row lit until the finger moves onto one. Closing returns the copy to the trigger. Under Reduce Motion the animator cross-fades everything in place instead, in 200 ms, as the reduced-motion design record asks: nothing travels, grows or blurs. Inline triggers, pointer opens and the bottom sheet are unchanged. A fine pointer keeps today's menu at the cursor.
7
+
8
+
The tint is a new theme token, `--color-background-backdrop-muted`: UIKit's context-menu tint (#16152A at 21%) by default, the paler form of the modal dim, and a theme can set its own. The lift's morph spring is a motion role a theme can retune; `astryx docs tokens` and `astryx docs motion` list both.
Copy file name to clipboardExpand all lines: packages/core/src/ContextMenu/ContextMenu.doc.mjs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ export const docs = {
160
160
usage: {
161
161
anatomy,
162
162
description:
163
-
'A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions without cluttering the UI with visible buttons. Under a finger, on every touch device, a held finger opens it with iOS timing: the trigger starts to grow at 150 ms, and the menu opens at 735 ms, or as soon as the finger lifts after 400 ms.',
163
+
'A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions without cluttering the UI with visible buttons. Under a finger, on every touch device, a held finger opens it with iOS timing: the trigger starts to grow at 150 ms, and the menu opens at 735 ms, or as soon as the finger lifts after 400 ms. A block trigger then lifts out of the page, as on iOS: a copy of it grows about 13% over a tinted backdrop, and the menu sits beside it, below when it fits and above otherwise.',
164
164
bestPractices: [
165
165
{
166
166
guidance: true,
@@ -190,7 +190,7 @@ export const docs = {
190
190
{
191
191
guidance: true,
192
192
description:
193
-
'Leave a little room around a block trigger: a held finger grows it from its center, by about 6%, until the menu closes.',
193
+
'Leave a little room around a block trigger: a held finger grows it from its center, by about 6%, and its lifted copy is about 13% larger while the menu is open.',
'A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions. Under a finger (any touch device): a held finger opens it at 735 ms, or on a lift after 400 ms; the trigger grows from 150 ms.',
273
+
'A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions. Under a finger (any touch device): a held finger opens it at 735 ms, or on a lift after 400 ms; the trigger grows from 150 ms, then a block trigger lifts (about 13%) over a tint with the menu below or above it.',
274
274
bestPractices: [
275
275
{guidance: true,description: 'Keep items concise and action-oriented.'},
276
276
{
@@ -294,7 +294,7 @@ export const docsDense = {
294
294
{
295
295
guidance: true,
296
296
description:
297
-
'Leave room around a block trigger: a held finger grows it about 6%.',
297
+
'Leave room around a block trigger: a held finger grows it about 6%, its lifted copy about 13%.',
0 commit comments