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/button/button.md
+33-10Lines changed: 33 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,13 +94,33 @@ Links buttons are labeled buttons with no background or border. Link buttons can
94
94
* Navigate users to another page within the same window.
95
95
* Navigate users to an external page.
96
96
97
-
While all link buttons lack borders, they can still vary in appearance. Link buttons that navigate users to another page within the same window should be presented as stand-alone text. Link buttons that navigate users to an external page may include an icon on the left or right of the text to further emphasize the action. For example, you could add an external link icon to show that clicking on it will navigate users externally to another website or application.
97
+
While all link buttons lack borders, they can still vary in appearance.
98
+
99
+
#### External links
100
+
101
+
Link buttons that navigate users to another page within the same window should be presented as stand-alone text.
102
+
103
+
Links that navigate users to an external page should include an external link icon beside the text to show that clicking on it will bring users to another website or application.
104
+
105
+
This is the recommendation for both default and inline links:
98
106
99
107
<divclass="ws-docs-content-img">
100
-
<img src="./img/external_links.png" alt="Example of link button with icon on the left and the right" width="218"/>
108
+

101
109
</div>
102
110
103
-
You might use a link button instead of a secondary button format to create greater visual hierarchy between two buttons. Examples include using text buttons as cancel buttons in modals or wizards, as well as for secondary actions in empty states.
111
+
#### Default link buttons
112
+
113
+
Default link buttons have no default background or border, but do have a hover background to indicate the clickable area.
114
+
115
+
<divclass="ws-docs-content-img">
116
+

117
+
</div>
118
+
119
+
##### When to use default links
120
+
121
+
Use default link buttons for actions that do not require the visual emphasis of a standard button, or when a link will be placed alongside other buttons and should match the spacing.
122
+
123
+
For example, the ‘Cancel’ button in modals or links within an empty state.
104
124
105
125
_Example of a link button in a modal_
106
126
@@ -114,20 +134,22 @@ _Example of link buttons in an empty state_
114
134
<img src="./img/empty_state_links.png" alt="Example of link buttons in an empty state" width="640"/>
115
135
</div>
116
136
117
-
### When to use
118
-
119
-
Always use link buttons in the following cases:
137
+
#### Inline links
120
138
121
-
* For cancel buttons in wizards or modals
139
+
Inline links are styled with a persistent underline, to indicate that they are clickable. When users hover over an inline link, the color changes from `global/text/color/link/default` to `global/text/color/link/hover`, which is darker. Once a link is clicked, the text color becomes `global/text/color/link/visited`.
122
140
123
141
<divclass="ws-docs-content-img">
124
-
<img src="./img/link_modal.png" alt="Example of link button used in modal" width="446"/>
142
+

125
143
</div>
126
144
127
-
* For more actions in empty states
145
+
##### When to use inline links
146
+
147
+
Inline link buttons are to be used for links placed within text content. If a link will take users to a different window or application, use an external icon link.
148
+
149
+
* Within text content
128
150
129
151
<divclass="ws-docs-content-img">
130
-
<img src="./img/link_empty.png" alt="Example of a link button in an empty state" width="600"/>
152
+

131
153
</div>
132
154
133
155
* For action buttons in tables
@@ -142,6 +164,7 @@ Always use link buttons in the following cases:
142
164
<img src="./img/link_alert.png" alt="Example of link button in an alert" width="309"/>
143
165
</div>
144
166
167
+
145
168
### Icon button ###
146
169
147
170
Icon buttons are useful in places where space is limited. For example, if you have too many actions within a menu, you could use a kebab icon to indicate more actions, or an export icon for exporting data. You can also use this button type for actions that are commonly associated with icons, like an exit icon to close a window or a hamburger icon to open a menu.
0 commit comments