Youtap Tech Indonesia
Breadcrumbs

Toggle & Switch

Version history

Version

Date

Comment

Current Version (v. 1)

Oct 03, 2023 01:35

@Unknown user

Introduction

The purpose of a toggle UI is to allow users to quickly and easily change the state of a setting or option. Toggle UIs are typically used for settings that have two mutually exclusive states, such as "on" and "off”.

Figma component - Toggle Scan

 

All the variations of a page header are the following:


01. Usage & Specifications

01. Toggle

Use this toggle

  • as an on/off switch for list elements

  • It is used for

    • Profile settings

    • Biometric login

    • Notification settings

    • Card management, e.g. freezing a card

toggle-off
Status=Toggle Off.png

Specifications

Size - 24 x 24px / 48 x 48 px

Colour - tertiary-black

toggle-on
Toggle.png


Specifications

Size - 24 x 24px / 48 x 48 px

Colour - secondary1

02. Switch

Use this toggle

  • as a switch between 2 different pages

  • It is used for

    • Scan/ Show QR code

Toggle1.png


Specifications

height - 48px

width - 160px (depending on text length)

background colour - primary

corner radius - 48px

Toggle3.png


Selected element

height - 40px

width - 72px (depending on text length)

background colour - tertiary-white

corner radius - 48px

text - display2, primary


padding left/right - SP_2

padding top/bottom - SP_1

Toggle2.png


Unselected element

Icon size - 24 x 24px

colour - tertiary-white

padding - SP_2


02. Interaction behaviour

01. Toggle

Moving the toggle right changes the state of the toggle from OFF to ON

The opposite direction changes the state from ON to OFF

02. Switch

Moving the switch right changes the state of the toggle from Option 1 to Option 2.

The opposite direction changes the state from Option 2 to Option 1.

Here the whole content of the screen changes depending on what is currently selected.


03. Accessibility

The standard for accessibility should always be WCAG2.0 - AA compliance for colour contrast and readability of the text.


04. Customisation options for Products

Item

Option A -

Whitelabel

Option B -

Restricted custom

Option C -

Fully custom

Label (text)

βœ…

βœ…

βœ…

Colour palette

(fitting the Youtap palette)

βœ…

βœ…

βœ…

Font

βœ…

βœ…

βœ…

Iconography

❌

βœ…

βœ…

Typography

❌

❌

βœ…

Spacing/ Padding

❌

❌

βœ…


05. Resources