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

segmented-control/accessibility

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.

Segmented control accessibility: list structure

A segmented control is treated like a list where each list item contains a button. Do not treat a segmented control like a radiogroup, tablist, or toolbar, as these other roles have their own keyboard navigation rules and are treated differently by screen readers and other assistive technologies.

Segmented control keyboard: Tab key

Tab behaves like it would in a list of focusable elements. When tabbing into the segmented control from an adjacent focusable element, focus will be brought to the first segmented control button if focus is being moved from before the segmented control, or to the last segmented control button if focus is being moved from after the segmented control.

Segmented control keyboard: Enter and Space

Pressing Enter or Space while focused on a deselected button selects that button. If the focused button is already selected, pressing Enter or Space should not deselect the button.

Segmented control keyboard: Arrow keys

Unlike radio groups and toolbars, the left and right arrow keys do not change the focus or selection in a segmented control.

Segmented control touch target size

Ensure segmented control buttons have a large enough touch target size. On devices that have a pointer with limited accuracy (such as touchscreen phones), provide a larger touch target area. The buttons should respond to hovers, clicks, and taps anywhere in the touch target area, even if it isn't directly on the control.

Give your agent this brain