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
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/application-launcher/application-launcher.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,24 +7,22 @@ subsection: menus
7
7
import '../components.css';
8
8
9
9
## Elements
10
-
An application launcher has two main elements.
11
10
12
11
<divclass="ws-docs-content-img">
13
12

14
13
</div>
15
14
16
-
1.**Icon:**used to open and close the menu.
17
-
2.**Menu:**contains a list of links.
18
-
3.**Favorites (optional):**allows users to pin items to the top of the list.
15
+
1.**Icon:**Used to open and close the menu.
16
+
2.**Menu:**Contains a list of links to applications.
17
+
3.**Favorites (optional):**Section at the top of the menu that contains pinned items.
19
18
20
19
## Usage
21
20
22
-
Application launchers are usually found within the masthead of a UI. They are commonly used when you want to allow users to launch multiple applications from a common location. Use the external link icon to indicate when a link opens a new window. You can also use icons in the list.
21
+
Application launchers are usually found within the [masthead](/components/masthead) of a UI. They are commonly used when you want to allow users to launch multiple applications from a common location. Use the external link icon to indicate when a link opens a new window. You can also use icons in the list.
23
22
24
-
For longer lists, you can optionally add the ability to search the list and favorite items. Favoriting an item using the star icon allows users to pin items to the top of the menu in a separate Favorites section. The item will appear in the list twice: once in the Favorites section and once in its original location.
23
+
For longer lists, you can optionally add the ability to search the list and favorite items. Favoriting an item using the star icon allows users to pin items to the top of the menu in a separate "Favorites" section. The item will appear in the list twice: once in the "Favorites" section and once in its original location.
25
24
26
-
27
-
## Examples
25
+
### Examples
28
26
**Application launcher with external links**
29
27
<divclass="ws-docs-content-img">
30
28

Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/dropdown/dropdown.md
+30-16Lines changed: 30 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ A basic dropdown consists of a toggle control to open and close a menu of action
13
13

14
14
</div>
15
15
16
-
1.**Toggle:**The toggle is used to open and close the menu. It takes on all of the behaviors of a button. The toggle label is used to name the menu and should be descriptive of the actions that it contains. If no more descriptive name makes sense, use “Actions” as a default name.
16
+
1.**Toggle:**Used to open and close the dropdown menu. It takes on all of the behaviors of a [button](/components/button). The toggle label is used to name the menu and should describe the actions that it contains. If no unique descriptive name applies, default to using “Actions”.
17
17
18
-
2.**Menu:**The menu contains a list of actions or links. Menus should optimally contain seven (7) or less items for easy scanning by the user. For longer menus, items may be grouped. See the [menu component guidelines](/components/menus/menu/design-guidelines) for more information about supported options, including use of icons, grouping, and descriptions. The Dropdown component includes many common built-in menu variants. It’s also possible to attach a custom menu by using the [basic panel variant](/components/menus/dropdown#basic-panel).
18
+
2.**Menu:**Contains a list of options, which could be actions or links. Menus should optimally contain 7 items or fewer to enable better scannability. For longer menus, items can be grouped. For more guidance on supported options in menus (use of icons, grouping, and descriptions) refer to the [menu component guidelines](/components/menus/menu/design-guidelines).
19
19
20
20
## Variations
21
-
In addition to the basic dropdown shown above, you may apply the following variants to the dropdown toggle element.
21
+
In addition to the basic dropdown toggle, you can use the following dropdown toggle variants.
22
22
23
23
<divclass="ws-docs-content-img">
24
24

@@ -27,21 +27,39 @@ In addition to the basic dropdown shown above, you may apply the following varia
27
27
### Primary toggle
28
28
The primary toggle should be used in the same way as you would use a primary button. If you want to draw the user’s attention to a dropdown menu as the primary place to take action on a page, consider using a dropdown with primary styling.
29
29
30
+
<divclass="ws-docs-content-img">
31
+

32
+
</div>
33
+
30
34
### Secondary toggle
31
-
The secondary toggle is a variation of the primary toggle. It has less visual prominence than the primary toggle, but more visual prominence than the basic toggle and other toggle variations. Use a secondary toggle when the actions in the dropdown are the secondary actions you’d want a user to take.
35
+
The secondary toggle is a variation of the primary toggle. It has less visual prominence than the primary toggle, but more visual prominence than the basic toggle and other toggle variations.
36
+
37
+
<divclass="ws-docs-content-img">
38
+

39
+
</div>
32
40
33
-
Use a secondary toggle when other toggle variations would appear visually inconsistent, or lack the sufficient prominence needed to create a visual hierarchy.
41
+
Use a secondary toggle when the actions in the dropdown are the secondary actions you’d want a user to take. You can also use a secondary toggle when other toggle variations would appear visually inconsistent, or lack the sufficient prominence needed to create a visual hierarchy.
34
42
35
43
### Plain toggle
36
-
Plain styling removes the border treatment from a dropdown toggle. This is useful in places where the default border treatment might make your layout feel visually cluttered or crowded. Use a plain toggle when further action hierarchy needs to be established and you already have primary or secondary action toggle on the page.
44
+
Plain styling removes the border from a dropdown toggle, which is useful when the default border treatment might make your layout feel visually cluttered or crowded.
45
+
46
+
<divclass="ws-docs-content-img">
47
+

48
+
</div>
49
+
50
+
Use a plain toggle when further action hierarchy needs to be established and you already have a primary or secondary action toggle on the page.
37
51
38
52
### Icon toggle
39
-
When there is not enough space for a labeled button, an icon can be used instead. Icon toggles are best used when you can use a common icon that has a well understood meaning or when you are working with limited space. A common default is to use the vertical ellipses (kebab) icon to generally indicate that it is connected with a menu as shown above.
53
+
When there is not enough space for a labeled button, use an icon toggle instead. Icon toggles are most effective when you use a common icon with a well-understood meaning, like the vertical ellipses (kebab) icon.
54
+
55
+
<divclass="ws-docs-content-img">
56
+

57
+
</div>
40
58
41
59
### Split button
42
60
A split button can be used when you want to combine an action button or other control with a dropdown menu. Use a split button action dropdown when you have multiple actions to show that are related to each other, but one action is more likely or important than the rest.
43
61
44
-
There are two types of split buttons: split buttons with checkboxes and split buttons with actions.
62
+
There are 2 types of split buttons: split buttons with checkboxes and split buttons with actions.
45
63
46
64
#### Split button with checkbox
47
65
@@ -53,20 +71,16 @@ A split button with a checkbox can be used in bulk selection use cases for a lis
53
71
54
72
#### Split button with actions
55
73
56
-
A split button with actions is useful when you want to expose a default action with a single click, but also allow access to other actions via the dropdown menu. This can be thought of as providing a shortcut to the most recent or frequently used item in the menu. A split button with actions can contain a labeled action or an icon in place of the label for use when there is limited space.
74
+
A split button with actions is useful when you want to expose a default action with a single click, but also allow access to other actions via the dropdown menu. This can be thought of as providing a shortcut to the most recent or frequently used item in the menu. The default action should be clearly labeled in the button.
57
75
58
76
<divclass="ws-docs-content-img">
59
77

60
78
</div>
61
79
62
-
**Behavior**
63
-
64
-
In this case, the user can either click on the primary button, or on the caret to open/view the rest of the related options. When a user clicks on an action whether the surfaced one, or one from inside the menu, the action will be selected and applied immediately.
80
+
#### Example
65
81
66
-
**Example**
82
+
In this case, the user can either click on the primary button, or on the caret to open/view the rest of the related options. When a user clicks on an action—either the surfaced action or one from inside the menu—the action will be selected and applied immediately.
67
83
68
84
<divclass="ws-docs-content-img">
69
85

70
-
</div>
71
-
72
-
A split action button is used in a modal where there are different possible submit variations. Here, all the buttons are related in that they are different ways to submit the modal, but the surfaced option is the most likely to be used, while the ones housed in the toggle are other less likely options.
0 commit comments