Lead:  Yehiel Elad-Certner -    

Description

Segmented buttons display a set of icons or text buttons in a row as a single element.

Segmented buttons allow users to choose one or more out of a range of available options.

Usage & Behavior

A segmented button is commonly used:

General guidelines

Structure

A segmented button consists of:

Default State

The default selection is always the first option in a segmented button group.

Content

Button labels need to be as short as possible, and should ideally be only one word.

Alternatively, icons can be used to replace button labels.

States

State

Icon

Text

Comment

Regular

Hover

Active

Selected

Disabled

Interaction

Clicking an unselected option in the group should:

Best practices

Use:

Don’t use:

Accessibility compliance

<<In general each component should be A11y complied,  please follow the 3 guidelines linked below. At the very least we should document that each component is in compliance with each of the 3>>

Focus management

<<How will the component work with keyboard only - without a mouse. Can be reference if written above

We already set a general guidelines described in /wiki/spaces/UX/pages/308969693 >>

Screen reader support 

<<Make sure the components support screen reader for content or behaviour where needed - see /wiki/spaces/UX/pages/308248620 >>

Contrast & size compliance

<<Visual designers must comply with the minimal of /wiki/spaces/UX/pages/301498483 for each component>>

Design

Zeplin link

Screen thumbnail

https://zpl.io/V4AZnjN

https://zpl.io/2Eyk8XD

Code

<<a box containing the code - discuss with Femi>>