Design variables
Section titled “Design variables”Enabled state
| Name | Token | Value |
|---|---|---|
| On-layer / Secondary | --color-on-layer-secondary |
#505057 |
| Border / Primary | --color-border-primary |
#00000033 |
| Button / Ghost | --color-button-ghost |
#FFFFFF00 |
Hover state
| Name | Token | Value |
|---|---|---|
| On-layer / Secondary | --color-on-layer-secondary |
#505057 |
| Border / Primary | --color-border-primary |
#00000033 |
| Button / Ghost hover | --color-button-ghost-hover |
#0000000D |
Active state
| Name | Token | Value |
|---|---|---|
| On-layer / Secondary | --color-on-layer-secondary |
#505057 |
| Border / Primary | --color-border-primary |
#00000033 |
| Button / Ghost active | --color-button-ghost-active |
#0000001A |
Toggletip popover
| Name | Token | Value |
|---|---|---|
| Layer / Level 1 | --color-layer-level-1 |
#FFFFFF |
| Name | Token | Value |
|---|---|---|
| Shadow / Shadow 400 | --box-shadow-400 |
#00000033 0px 10px 24px 0px, #00000033 0px 1px 5px 0px, #0000004D 0px 0px 0.5px 0px, #0000000D inset 0px 0px 1px 0px, #0000000D inset 0px 0.25px 0px 0.25px |
States
Section titled “States”The checkbox allows various states: unselected, selected, and indeterminate. In addition to these states, checkboxes also have a separate state for focus and disability. The default view of a checkbox set is with no option selected.
States are visual representations used to communicate the status of a button as an interactive element.
-
Enabled The enabled state of a button is when the user’s cursor is not hovering over it, and the button isn’t disabled.
-
Hover When the user’s cursor is on a button, it is in a hover state, but they haven’t clicked it yet.
-
Focus A button is in the focus state when the user targets it via the keyboard.
-
Active / isSelected The button is in a Pressed state after it has been clicked. In case the click to button opens a popover related to it, the button is in the selected state.
-
Loading When an action is running, the button is in a loading state. All the current buttons support this state, and the width does not need to be changed. The on-hover cursor type will be set to ‘in progress’ to indicate that the action is being completed.
-
Disabled The button is Disabled when its action is blocked by something that needs to be completed first, like changing a field value or waiting for a system response. Its opacity is 50%. Add an explanatory tooltip to inform the user why the button is disabled. The on-hover cursor type will be in the ’not-allowed state’ to indicate that the requested action will not be executed.
-
Applied The button is in the applied state if there is a need to indicate a completed action based on a user’s input. E.g., Applied filters or applied labels.
Typography
Section titled “Typography”Segmented control text is written in sentence case. Only the first word of each segmented control button is capitalized unless it includes a proper name or a word we capitalize (see Terminology and vocabulary).
| Font-size (px) | Font-weight | |
|---|---|---|
| Toggletip popover | 13 | Regular/Bold |