new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

GitHub Primer · all subjects

checkbox

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Checkbox usage for multiple and single selections

Checkboxes are form controls used to allow users to select multiple items from a list of individual items, or to mark one individual item as selected.

Checkbox states: rest, focus, and disabled

Checkboxes have static dimensions and three different states: rest (default), focus, and disabled.

Checkbox selected states: checked and indeterminate

Checkboxes can show two forms of selection: checked or indeterminate. The indeterminate state is colored in some browsers like Safari and grey in others like Chrome.

Individual checkbox validation messages are not recommended

An individual checkbox should not have its own validation message or style. Instead, show a validation message on the checkbox group. Validation messages should appear at the group level, not the individual checkbox level.

Individual checkbox required field handling

While there are certain use cases where an individual checkbox may be required, the most common use case is to require a selection from a checkbox group. In this case, an individual checkbox button should not be marked as required, but the checkbox group should be marked as required instead.

Give your agent this brain