Buttons are used as triggers for actions. There are different types of buttons depending on the situation. This page will cover the different button types and situations.
See Vuetify's Button Documentation for more details.
Vuetify comes with large, medium and small sized buttons. Here is how they are used for Girder.
Here is an example:
See Vuetify's Button Documentation for more details.
Buttons that represent confirmative actions should be thought of as the conclusion of a workflow. Therefore they should be the last thing displayed and should always be on the right.
Do. The confirmative action button is given the most emphasis by
using the depressed button style (using light-blue darken-1
). The
cancel button is close by to avoid having to move the mouse too far and is
de-emphasized by using the "flat" button style. The color red accent-3
is used to signify the button is a negative action.
Don't. Even though the user would still understand the workflow displayed here, it is not best practice to display action buttons on the left side. Think of the action buttons as "next" buttons, since their job is to move you forward in the flow. Putting them on the right reinforces that forward movement.
Don't. Even though listing the main action button first supports the natural reading order, it is not best practice to display UI actions in this order. Placing the main action button last improves the flow because it assumes this button is the conclusion of said flow. The conclusion always comes last.
Don't. This seems like a completely reasonable way to display action buttons, right? The answer is yes, BUT even though there would be no confusion on the user's end, best practice is to keep the action buttons close to minimize mouse travel for the user.
Don't. Negative action buttons should never have more or even similar emphasis to the confirmative action button.
Sometimes you will need more than one or two buttons to represent actions. In this case you will use a line separated list instead of full color buttons to avoid clutter. Using icons here is a good idea, because it differentiates the action allowing for quicker identification.
Do. A background color is used to separate the action buttons from the content above and icons are used to visually differentiate them. Notice "Delete" is displayed in red to to indicate it is a negative action.
Don't. The use of full color background buttons makes this area more cluttered. The objective is to display it as a clean list than a group of larger, more emphasized buttons.
Do. You may also display the list of actions horizontally.