From a7035a7eea838590166447ee04a4f4c76bb3a792 Mon Sep 17 00:00:00 2001 From: Matt King Date: Sun, 5 Nov 2017 21:57:11 -0800 Subject: [PATCH] Menu and Menubar Pattern: Add Labeling Guidance To resolve issue #462, Added the following bullets to roles, states, and properties subsection of the menu and menubar pattern in aria-practices.html. > * If a menubar has a visible label, the element with role menubar has aria-labelledby set to a value that refers to the labeling element. Otherwise, the menubar element has a label provided by aria-label. > * An element with role menu either has: > * aria-labelledby set to a value that refers to the menuitem or button that controls its display. > * A label provided by aria-label. --- aria-practices.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aria-practices.html b/aria-practices.html index 244efd68a5..bad08ba67e 100644 --- a/aria-practices.html +++ b/aria-practices.html @@ -1933,10 +1933,21 @@

WAI-ARIA Roles, States, and Properties

  • When a menu item is disabled, aria-disabled is set to true.
  • Items in a menu may be divided into groups by placing an element with a role of separator between groups. For example, this technique should be used when a menu contains a set of menuitemradio items.
  • All separators should have aria-orientation consistent with the separator's orientation.
  • +
  • + If a menubar has a visible label, the element with role menubar has aria-labelledby set to a value that refers to the labeling element. + Otherwise, the menubar element has a label provided by aria-label. +
  • If a menubar is vertically oriented, it has aria-orientation set to vertical. The default value of aria-orientation for a menubar is horizontal.
  • +
  • + An element with role menu either has: + +
  • If a menu is horizontally oriented, it has aria-orientation set to horizontal. The default value of aria-orientation for a menu is vertical.