You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
Radio buttons allow a selection of one option from a group of mutually exclusive options.
Usage

Use radio buttons to provide people with a choice from a set of two to five mutually exclusive options. For example to offer a choice of how to save downloads.
Combination
Label Groups of Radio Buttons
Start every group of radio buttons with a label that defines what these options are about.
Between 2-5 Choices

{% include global/do.md %}
Combine radio buttons in groups of two to five mutually exclusive choices.

{% include global/dont.md %}
Never use one radio button on it’s own, consider using a checkbox instead.

{% include global/dont.md %}
For more than five choices, consider other options. Those could be a drop down or a reduction of choices.
Always Exactly One Selected Choice
In any groups of radio buttons, one must always be selected. Do not use a group of radio buttons if no selected button is an option.

{% include global/do.md %}

{% include global/dont.md %}
Once an option is selected, this state cannot be reached by the user again.
Consider the Order of Choices
Make the default the first choice if possible.
If choices describe a range of impact to browsing behavior, order them from greatest impact to least impact. Do not force default to top if it breaks the sequence.
Style
Radio Buttons consist of a part to indicate their state and a label to describe the choice it represents.
Use the [Sketch Libary Component - Radio‑Button](../images/components/radio-buttons/Photon Design System - Components - Radio-Buttons.sketch).
Indicator & Label

Use the indicator to show whether the radio button is selected or not.
Use the label to make the choice clear.
Dimensions

Corner Radius: `100%`
Height: 16px
Width: 16px
Horizontal Padding: 4px
Text and Color

Text: [Body 10](../visuals/typography.html#scale)
Text Color: Grey 90 #0c0c0d
Behaviors
Selected / Unselected


A radio button can be selected by clicking on the area of its indicator as well as its label. Usually the clicktarget extends to the same width for each element in a collection of radio buttons. This results in a click target that extends beyond the label, for all elements shorter than the longest.
Clicking a radio button selects it on release of the click. If, during the click, the mouse is moved off of the radio button, it does not become selected.
Interaction
Selected

Background Color:
Default: Blue 60 #0060df
Hover: Blue 70 #003eaa
Pressed: Blue 80 #002275
Unselected

Background Color:
Default: Grey 90 a10 rgba(12, 12, 13, 0.1)
Hover: Grey 90 a20 rgba(12, 12, 13, 0.2)
Pressed: Grey 90 a30 rgba(12, 12, 13, 0.3)
Focused
When Nightly Starts
Show your home page
Show a blank page
Show your windows and tabs from last time
Interactive example (Currently only renders correctly in Firefox.)