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
* An action button can have a hold icon (a small corner triangle). This icon indicates that holding down the action button for a
201
-
* short amount of time can reveal a [popover](/docs/components-popover--docs) menu, which can be used, for example, to switch
202
-
* between related actions. Note that this popover menu is not demonstrated here—this would be handled by the implementation.
201
+
* short amount of time (currently the standard is 300ms) can reveal a [popover](/docs/components-popover--docs) menu, which can be used, for example, to switch
202
+
* between related actions. Note that this popover menu is not demonstrated here; this would be handled by the implementation.
203
203
* Because of the way padding is calculated, the hold icon must be placed before the workflow icon in the markup.
Copy file name to clipboardExpand all lines: components/actionmenu/stories/actionmenu.stories.js
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -75,11 +75,6 @@ export default {
75
75
tags: ["migrated"],
76
76
};
77
77
78
-
/**
79
-
* Action menu allows users to access and execute various commands or tasks related to their current workflow. It's typically triggered from an action button by user interaction.
80
-
*
81
-
* Note that the accessibility roles are different for an action menu compared to a normal menu. The action menu is a combination of a menu, popover, and action button.
82
-
*/
83
78
exportconstDefault=ActionMenuGroup.bind({});
84
79
Default.args={
85
80
triggerArgs: {
@@ -130,6 +125,8 @@ Default.args = {
130
125
* By default, the menu is opened by pressing the trigger element or activating it via the <kbd>Space</kbd> or <kbd>Enter</kbd> keys. However, there may be cases where the trigger should perform a separate action on press such as selection, and should only display the menu when long pressed. For this use-case, the menu will only be opened when pressing and holding the trigger or by using the <kbd>Option</kbd> (Alt on Windows) + <kbd>Down arrow</kbd>/<kbd>Up arrow</kbd> keys while focusing the trigger.
131
126
*
132
127
* This example illustrates the expected visuals and states of the action menu for a trigger with both long press and short press behaviors.
128
+
*
129
+
* Please note that the long press functionality is not implemented in this documentation and the example serves only as a visual reference.
133
130
*/
134
131
exportconstLongPress=Template.bind({});
135
132
LongPress.args={
@@ -165,7 +162,7 @@ LongPress.parameters = {
165
162
};
166
163
167
164
/**
168
-
* Action menus can be positioned in four locals relative to the trigger but <u>only one menu can be triggered at a single time</u>.
165
+
* Action menus can be positioned in four locals relative to the trigger but <em>only one menu can be triggered at a single time</em>.
0 commit comments