Confirmed users
34
edits
m (minor additions to buttons section) |
|||
Line 101: | Line 101: | ||
==Buttons== | ==Buttons== | ||
'''Used for:''' | |||
* Buttons allow users to perform an action when tapped. The action is communicated using text and/or an icon. | |||
'''Characteristics:''' | '''Characteristics:''' | ||
* Have two components: visual target and hit target. | * Have two components: visual target and hit target. The hit target is always larger to assist users in hitting the target. | ||
* States: | |||
** Normal | |||
** Pressed | |||
** Disabled | |||
* Types: | * Types: | ||
** | ** <b>Action buttons</b> - used when there are only a few actions and a list is not required. The main action button uses a highlight colour. | ||
** <b>List buttons</b> - used when displaying a list of actions or to trigger the display of a value selector | |||
** | ** <b>Input field buttons</b> - used to perform actions with input fields | ||
** <b>Special / custom buttons</b> - used for specific actions including recording, dialing, and others. | |||
** | |||
** | |||
* [https://github.com/mozilla-b2g/gaia/blob/master/shared/style/buttons.css Link to CSS in Github ] | * [https://github.com/mozilla-b2g/gaia/blob/master/shared/style/buttons.css Link to CSS in Github ] |