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

tooltip/accessibility

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

Tooltip label option uses aria-labelledby

The label option on tooltips serves as the accessible name for the control utilizing aria-labelledby under the hood. Icon buttons have a visually hidden label utilizing aria-label, and the label option allows that label to be displayed in a tooltip instead.

Tooltip description option uses aria-describedby

The description option on tooltips supplements the control's text label by utilizing aria-describedby under the hood, and will be announced to a screen reader in addition to the label. The description should be kept short and concise.

Use aria-label only on elements with no existing text content

Tooltips use aria-label for tooltip contents. However, aria-label replaces the text content of an element in screen readers, so only use tooltip on elements with no existing text content.

Tooltips only on interactive elements that perform actions

A tooltip may only be used on an element that is interactive such as a button or a link. Even if an element is focusable, a tooltip may only be used if the element does something when it is clicked.

Give your agent this brain