Projects/Usability/HIG/CheckBox: Difference between revisions

    From KDE TechBase
    < Projects‎ | Usability‎ | HIG
    (→‎How to use: consistency: "Don't" => "Do not")
    No edit summary
    Line 3: Line 3:
    == Purpose ==
    == Purpose ==
    A ''check box'' is a control that permits the user to make multiple selections from a number of options. Check boxes are used to toggle an option on or off, or to select or deselect an item. Users make a decision between two clearly opposite choices (on (vs. off), apply (vs. don't apply), show (vs. hide). etc.).
    A ''check box'' is a control that permits the user to make multiple selections from a number of options. Check boxes are used to toggle an option on or off, or to select or deselect an item. Users make a decision between two clearly opposite choices (on (vs. off), apply (vs. don't apply), show (vs. hide). etc.).
    == Examples ==
    to be done


    == Guidelines ==
    == Guidelines ==
    Line 11: Line 8:
    * Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of [[Projects/Usability/HIG/Radio_Buttons| radio buttons]] or a [[Projects/Usability/HIG/Combo_Box| combo box]].
    * Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of [[Projects/Usability/HIG/Radio_Buttons| radio buttons]] or a [[Projects/Usability/HIG/Combo_Box| combo box]].
    * Do not use a check box if the opposite is ambiguous.
    * Do not use a check box if the opposite is ambiguous.
    * Do not use a check box for more than 10 options, use a (drop-down) list.
    [[File:HIG_Checkbox1.png]]
    * For more than five options, use either a [[Projects/Usability/HIG/Combo_Box| check box list]] or the [[Projects/Usability/HIG/Combo_Box| dual-list pattern]].
    * For more than five options, use either a [[Projects/Usability/HIG/Combo_Box| check box list]] or the [[Projects/Usability/HIG/Combo_Box| dual-list pattern]].
    * Do not use sliding switches in Desktop applications. They only offer good user interaction on touch screens, so they should only be used in applications for [http://community.kde.org/Plasma| Plasma Active].
    * Do not add line breaks. If necessary place an additional label below the check box.
    * Do not add line breaks. If necessary place an additional label below the check box.
    [[File:HIG_Checkbox2.png]]
    * Checking a check box should always "enable" an option or change the state of an option to "on".  Checking a negative or disabling option is a double negative and causes confusion and errors.
    * Checking a check box should always "enable" an option or change the state of an option to "on".  Checking a negative or disabling option is a double negative and causes confusion and errors.
    [[File:HIG_Checkbox3.png]]
    * If certain controls in a configuration dialog are only relevant if a certain check box is checked (i.e. they are dependent controls), disable them instead of hiding them if that check box is unchecked.
    * If certain controls in a configuration dialog are only relevant if a certain check box is checked (i.e. they are dependent controls), disable them instead of hiding them if that check box is unchecked.


    In discussion
    In discussion


    * Do not use the selection to perform commands.
    * Do not use the selection to perform commands or to dynamically display other controls and windows.
    [[File:Checkbox4.png]]
    [[File:HIG_Checkbox4.png]]


    === Mixed state ===
    === Mixed state ===
    Line 29: Line 27:


    === Appearance ===
    === Appearance ===
    * Do not use sliding switches in Desktop applications. They only offer good user interaction on touch screens, so they should only be used in applications for [http://community.kde.org/Plasma| Plasma Active].
    * Align groups of check boxes 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.
    * Align groups of check boxes 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.
    * Check box labels are in [[Projects/Usability/HIG/Capitalization|sentence style capitalization]].
    * Check box labels are in [[Projects/Usability/HIG/Capitalization|sentence style capitalization]].

    Revision as of 13:26, 5 June 2013


    Purpose

    A check box is a control that permits the user to make multiple selections from a number of options. Check boxes are used to toggle an option on or off, or to select or deselect an item. Users make a decision between two clearly opposite choices (on (vs. off), apply (vs. don't apply), show (vs. hide). etc.).

    Guidelines

    How to use

    • Use check boxes for non-exclusive options that have clear alternatives. Mutually exclusive options should use a set of radio buttons or a combo box.
    • Do not use a check box if the opposite is ambiguous.

    • For more than five options, use either a check box list or the dual-list pattern.
    • Do not add line breaks. If necessary place an additional label below the check box.

    • Checking a check box should always "enable" an option or change the state of an option to "on". Checking a negative or disabling option is a double negative and causes confusion and errors.

    • If certain controls in a configuration dialog are only relevant if a certain check box is checked (i.e. they are dependent controls), disable them instead of hiding them if that check box is unchecked.

    In discussion

    • Do not use the selection to perform commands or to dynamically display other controls and windows.

    Mixed state

    • Use the mixed state only to indicate that an option is set for some, but not all, child objects. Mixed state must not be used to represent a third state.
    • Users must not be able to set a mixed state directly.
    • Clicking a mixed state check box enables all child objects.

    Appearance

    • Do not use sliding switches in Desktop applications. They only offer good user interaction on touch screens, so they should only be used in applications for Plasma Active.
    • Align groups of check boxes 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.
    • Check box labels are in sentence style capitalization.
    • For layout directions, see label alignment: check boxes.

    Code snippets

    to be done