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 1d09473
Browse filesBrowse the repository at this point in the historyBrowse files
[feat] On iPhone and iPad, 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: 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 the theme's backdrop colour, and it stays 16 px from the screen's sides and 20 px from its top and bottom. A tap on the backdrop 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, and its content enters from a blur. Closing returns the copy to the trigger. Inline triggers, pointer opens and the bottom sheet are unchanged. Other touch screens, Android included, keep today's menu under the finger, with nothing lifted.
Copy file name to clipboardExpand all lines: packages/core/src/ContextMenu/ContextMenu.doc.mjs
+5-5Lines changed: 5 additions & 5 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. On iPhone and iPad 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. On other touch screens, Android included, a finger held for 500 ms opens it under the finger.',
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. On iPhone and iPad 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. On other touch screens, Android included, a finger held for 500 ms opens it under the finger.',
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: on iOS a held finger grows it from its center, by about 6%, until the menu closes.',
193
+
'Leave a little room around a block trigger: on iOS 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. Touch on iOS: a held finger opens it at 735 ms, or on a lift after 400 ms; the trigger grows from 150 ms. Other touch screens: 500 ms, under the finger.',
273
+
'A right-click context menu that appears at the cursor position. Use to provide contextual actions for specific elements or regions. Touch on iOS: 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. Other touch screens: 500 ms, under the finger.',
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: on iOS a held finger grows it about 6%.',
297
+
'Leave room around a block trigger: on iOS a held finger grows it about 6%, its lifted copy about 13%.',
0 commit comments