[SDK] Toolkit lacks radio buttons

Bug #1386579 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Pierre Bertet

Bug Description

Currently the toolkit has no radio buttons.

As a result, developers are using checkboxes for groups of options where only one can be selected at a time.
<https://launchpadlibrarian.net/187978147/new.jpg>

This is misleading. Everywhere else, checking a checkbox toggles its state, whereas here special code is used to ensure it remains checked. And on every other platform, checking a checkbox doesn't uncheck another checkbox.

<http://goo.gl/6fWvFg>: “Radio buttons are one of the three types of radio control (along with the radio list and the radio menu), letting you choose exactly one from a group of options…”

description: updated
Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit
Revision history for this message
Tim Peeters (tpeeters) wrote :

This is a bug for design, because we don't have designs for radio buttons (and maybe we won't ever have them at all?).

In the meantime, we have either the CheckBoxes shown in the screenshot, or the ItemSelector.

Changed in ubuntu-ui-toolkit:
status: New → Opinion
Changed in ubuntu-ux:
assignee: nobody → Matthew Paul Thomas (mpt)
John Lea (johnlea)
summary: - Toolkit lacks radio buttons
+ [SDK] Toolkit lacks radio buttons
Changed in ubuntu-ux:
importance: Undecided → Medium
Changed in ubuntu-ux:
status: New → Confirmed
Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote :

We are going to use the ListItem selector. It currently shows the checkmark at the right.

We will need to explore the implications of this decision on larger form factors for the Convergence SDK.

Changed in ubuntu-ux:
assignee: Matthew Paul Thomas (mpt) → Giorgio Venturi (giorgio-venturi)
status: Confirmed → Incomplete
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

On the PC, toolkits have radio lists like ListItem as well. But they *also* have radio buttons, because for a couple of reasons, sometimes radio lists just don't work.

First, just as with boolean options, radio options may have secondary controls. An example of this is shown, albeit with a visual glitch, in the bug description <https://launchpadlibrarian.net/187978147/new.jpg>: the second option has a caption containing a tappable link to the "Nokia HERE terms and conditions". That wouldn't be possible with ListItems.

If only one radio item has secondary controls, you can work around this by ordering the option with secondary controls last, so that the secondary controls are outside the list. But sometimes the order is already important: for example in that Location screen, the "Not at all" option really should be last. And sometimes, more than one option has secondary controls. An example of this is the "Connect to the Internet" screen of the installer <https://launchpadlibrarian.net/195464902/internet.png>, where both "Connect to this Wi-Fi network" and "Connect to a hidden Wi-Fi network" have secondary controls (and again, the negative option really should be last).

Second, radio options should sometimes be presented horizontally if they can fit, which ListItems can't do. For example in System Settings on the PC, "Time & Date" has "Set the time: ( ) Manually (*) Automatically from the Internet", while "Mouse & Touchpad" has "Primary button: (*) Left ( ) Right".

Let me know if you need any further info.

Changed in ubuntu-ux:
status: Incomplete → New
Changed in ubuntu-ux:
status: New → Triaged
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
Changed in ubuntu-ux:
assignee: Olga Kemmet (olga-kemmet) → Matthew Paul Thomas (mpt)
Femma (femma)
Changed in ubuntu-ux:
assignee: Matthew Paul Thomas (mpt) → Femma (femma)
Revision history for this message
Femma (femma) wrote :

Part of the UI Toolkit/SDK project.

Changed in ubuntu-ux:
assignee: Femma (femma) → Matthew Paul Thomas (mpt)
assignee: Matthew Paul Thomas (mpt) → nobody
status: Triaged → In Progress
Changed in ubuntu-ux:
assignee: nobody → Matthew Paul Thomas (mpt)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I have now fully specified radio buttons in the toolkit specification. Let me know if you have any questions. <https://goo.gl/tnwf5y> (Canonical-only link, unfortunately)

Changed in ubuntu-ux:
status: In Progress → Fix Committed
description: updated
Changed in ubuntu-ui-toolkit:
status: Opinion → New
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
status: Triaged → Confirmed
no longer affects: ubuntu-ui-toolkit
description: updated
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Pierre Bertet (bpierre)
no longer affects: ubuntu-ux
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.