Difference between revisions of "KDE Visual Design Group/HIG/RadioButtons"

(Move notice)
(29 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Purpose ==
{{Note|This page is now on [[https://hig.kde.org/components/editing/radiobutton.html https://hig.kde.org/]]}}
''Radio buttons'' offer the user a choice of two or more mutually exclusive options. Try to limit the number of radio buttons and radio button groups in a dialog.  Offering a high number of radio buttons consumes screen space and adds to visual clutter. At the same time, showing all available options at once is an advantage if users are likely not to know possible alternatives.
== Examples ==
== Guidelines ==
* Use radio buttons for a few mutually exclusive options. If there are more than five options, use a combo box or list instead. In case of artificial opposite options (apply vs. don't apply) consider to replace the radio buttons by one checkbox.
* Use radio buttons if the user should see the choices without further interaction.
* Provide a descriptive label above or left to a group of radio buttons in [[KDE_Visual_Design_Group/HIG/Capitalization|sentence style capitalization]].
* Use [[KDE_Visual_Design_Group/HIG/Capitalization|title style capitalization]] the radio button options.
* Align groups of radio buttons vertically rather than horizontally, as this makes them easier to scan visually. Use horizontal or rectangular alignments only if they greatly improve the layout of the window.
* Radio buttons are not dynamic; their content or labels should not change depending on the context.
* If toggling a radio button affects the enabled state of other controls, place the controls that it affects next to the radio button or below and indented.
* Don't initiate an action when the user clicks a radio button.
* When using a radio button and none of the options is a valid choice, add another option to reflect this choice, such as None or Does not apply.
* Always have one radio button selected; make the first item the default option.
== Code snippets ==
to be done

Latest revision as of 16:15, 5 February 2019

This page is now on [https://hig.kde.org/]

This page was last edited on 5 February 2019, at 16:15. Content is available under Creative Commons License SA 4.0 unless otherwise noted.