This is the default variant, and can be used to save space. Always have a short, clear and descriptive label that explains the buttons purpose.
Icon Before
Use icon thats meaning is easily recognizable. Ideally, it should have same meaning across all our markets. To make sure your icons align, use icon before. For more information about icons in general, check out our Icons.
Icon After
Use icon if the icon meaning is easily recognizable. Ideally, it should have same meaning across all our markets. For more information about icons in general, check out our Icons..
Button labels should be clear, brief and invite the customer to take action.
Do This
Use a verb and noun construction, like “View Account Details”
Be specific in the action a user is taking, like “Submit”
Use consistent verbiage for common actions, like “View” to take a user to a new view
Keep it short, target a length of one to three words with no more than five
Use title case, like “Almost Every Word is Capitalized”
Don’t Do This
Don’t use personal pronouns, such as “View my Account Details”
Why?
Button labels need to be simple and easy to understand.
For accessibility generic text, like “Learn More”, is not recommended, as it does not inform a user of the content behind the action. Headings and labels accessibility standards
Remember that action should be brief. The longer a button text, the longer a user spends reading them.
Try to avoid using disabled buttons when possible, opting for enabled buttons or no button and an informative alternative, such as ‘out of stock’.
If you do choose to use a disable a button, our buttons use aria-disabled=true instead of disabled, so it’s announced to screen reader users.
Do This
Avoid disabled buttons when possible
Instead of a button try using an informative plain text alternative, like “out of stock”
Use form validation
Always provide a way out
Use a disabled button to prevent information from being submitted twice e.g. double bookings
Use aria-disabled=true
Don’t Do This
Don’t use disabled button labels to communicate information
Disable the form submit until the form is complete
Why?
Disabled buttons are visible, but not always focusable. They are not announced to screen readers using tab, and can only be found if your users go looking for them.
Disabling submit buttons in forms stops users from seeing error messages. Error messages save users time by helping users know where they have incorrectly filled in a form.
Icons used in buttons should be simple, with well known visual metaphors a hand with a thumbs-up for feedback, pencil for edit, or a lock for security. For more information about icons in general, check out our icons.
Do This
Use simple well known icons
Take real world examples for example lock for security
Be consistent. Always use the same icon for action.
Think customer consistency. Follow the icon names available in our icon library for the actions when possible.