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
|This is the most important action in a view or in part of one. It's the main closure or continuation action (e.g., *Save*) in a form or dialog. Avoid presenting the user with more than one at any time.
81
-
82
-
|Secondary
83
-
|This is the default style recommended for most actions. It can be the alternate or negative closure actions (e.g., *Cancel*) in a form or dialog.
84
-
85
-
|Tertiary
86
-
|These are lower-importance actions -- especially in parts of the UI with less space, such as cards, or repeated actions for items in lists, tables, etc. Caution: this can be mistaken for non-interactive text.
87
-
|===
88
-
89
-
90
-
=== Danger & Error Variants
91
-
92
-
This is a style for distinguishing actions related to dangers, warnings, or errors. Dangerous actions would be those that lose or destroy data.
Primary danger buttons should only be used when a dangerous action is the most likely action. An example of this would be the affirmative *Delete* action in a deletion confirmation dialog. Secondary and Tertiary variants can be used for actions related to current errors, such as resolving them or viewing their details.
120
-
121
-
122
-
=== Warning Variant
123
-
124
-
This is a style for distinguishing actions related to warnings: for example, in dialogs that are intended to warn the user, or to provide information that requires extra attention.
|For important call-to-action buttons -- where more emphasis is needed.
188
-
189
-
|Normal
190
-
|Default size.
191
-
192
-
|Small
193
-
|Compact option for cramped parts of the UI -- where a Tertiary variant isn't deemed appropriate.
194
-
|===
195
-
196
-
.Customize Default Button Size
197
-
[TIP]
198
-
Size variants should only be used in special cases. See <<{articles}/styling/lumo/lumo-style-properties/size-space#,Size and Space>> for details on how to change the default button size.
199
-
200
-
201
-
=== Miscellaneous Style Variants
202
-
203
-
The *Tertiary Inline* variant omits all white space around the label. This can be useful for embedding a Button as part of text content or another component. It shouldn't be confused with a link.
204
-
// the link in the line above shouldn't send the user anywhere
The *Tertiary + Contrast* combination should be avoided because of similarity to non-interactive text elements.
287
-
288
-
.Customize Default Button Colors
289
-
[TIP]
290
-
The standard Button colors can be adjusted using <<{articles}/styling/lumo/lumo-style-properties/color#,the Lumo color properties>>. Therefore, these variants shouldn't be used to replace standard buttons only to achieve a different color.
291
-
292
-
293
47
== Buttons with Icons
294
48
295
49
Buttons can have icons instead of text, or they can have icons along with text.
@@ -327,7 +81,7 @@ Additionally, <<../tooltip#,tooltips>> can be added to provide a description of
327
81
328
82
.Icon-Only Button Style Variant
329
83
[NOTE]
330
-
Use the `icon` / `LUMO_ICON` theme variant on icon-only buttons to reduce the white space on either side of the icon. The Flow `Button` component automatically applies the `icon` variant if the icon is the only child of the component.
84
+
Use the `icon` / `LUMO_ICON` style variant on icon-only buttons to reduce the white space on either side of the icon. The Flow `Button` component automatically applies the `icon` variant if the icon is the only child of the component.
0 commit comments