diff --git a/content/about/coverage-and-quality/coverage-and-quality-report.html b/content/about/coverage-and-quality/coverage-and-quality-report.html index 519a0dabe2..4a27fbac1a 100644 --- a/content/about/coverage-and-quality/coverage-and-quality-report.html +++ b/content/about/coverage-and-quality/coverage-and-quality-report.html @@ -391,6 +391,7 @@

Roles with More than One Guidance or Exa
  • (Deprecated) Collapsible Dropdown Listbox
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • @@ -540,6 +541,7 @@

    Roles with More than One Guidance or Exa
  • (Deprecated) Collapsible Dropdown Listbox
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • @@ -845,6 +847,7 @@

    Properties and States with More than One
  • (Deprecated) Collapsible Dropdown Listbox
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • Actions Menu Button Using aria-activedescendant (HC)
  • Radio Group Using aria-activedescendant (HC)
  • @@ -1010,6 +1013,7 @@

    Properties and States with More than One
  • Button (IDL Version)
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • Editor Menubar (HC)
  • Horizontal Multi-Thumb Slider (HC)
  • @@ -1072,6 +1076,7 @@

    Properties and States with More than One
  • (Deprecated) Collapsible Dropdown Listbox
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • Actions Menu Button Using aria-activedescendant (HC)
  • Actions Menu Button Using element.focus() (HC)
  • @@ -1198,6 +1203,7 @@

    Properties and States with More than One
  • (Deprecated) Collapsible Dropdown Listbox
  • Listbox with Grouped Options
  • Listboxes with Rearrangeable Options
  • +
  • Experimental Scrollable Listbox with Actions on Options
  • Scrollable Listbox
  • Experimental Tabs with Action Buttons (HC)
  • Tabs with Automatic Activation (HC)
  • @@ -1301,7 +1307,7 @@

    Coding Summary

    Total Examples - 63 + 64 High Contrast Documentation @@ -1317,7 +1323,7 @@

    Coding Summary

    Uses currentColor value - 29 + 30 + + + + + + + + + + + + + + + + +
    +

    Experimental Example of Scrollable Listbox with Actions on Options

    + +
    +

    About This Experimental Example

    + +

    + This is an experimental implementation of the draft specification of the aria-actions attribute. + The aria-actions property enables an element to reference one or more interactive elements that can be activated to perform an action on the referencing element. + In this example, each option element in the listbox references several buttons that perform actions on the option. + The relationship provided by aria-actions enables an assistive technology to both communicate the availability of the action button and provide a command for activating the button while focus is on the tab. +

    +

    + The following example implementation of the Listbox Pattern demonstrates a scrollable single-select listbox widget. + This widget is functionally similar to an HTML select input where the size attribute has a value greater than one. +

    +

    + This example also demonstrates how to provide buttons that provide contextual actions for each item in the list. + Each option has an associated set of four actions that enable users to move an option up or down, favorite it, or remove it from the list. + The contextual actions are provided by buttons that appear on hover or focus. + The buttons are referenced by aria-actions specified on the option element, which enables them to be discovered and activated by an assistive technology user while focus is on the option. +

    +

    Similar examples include:

    + +
    + +
    +
    +

    Example

    +
    + +
    +

    Choose your favorite transuranic element (actinide or transactinide).

    +
    +
    + Transuranium elements: +
      +
    • + + None +
    • +
    • + + Neptunium + + + + + + +
    • +
    • + + Plutonium + + + + + + +
    • +
    • + + Americium + + + + + + +
    • +
    • + + Curium + + + + + + +
    • +
    • + + Berkelium + + + + + + +
    • +
    • + + Californium + + + + + + +
    • +
    • + + Einsteinium + + + + + + +
    • +
    • + + Fermium + + + + + + +
    • +
    • + + Mendelevium + + + + + + +
    • +
    • + + Nobelium + + + + + + +
    • +
    • + + Lawrencium + + + + + + +
    • +
    • + + Rutherfordium + + + + + + +
    • +
    • + + Dubnium + + + + + + +
    • +
    • + + Seaborgium + + + + + + +
    • +
    • + + Bohrium + + + + + + +
    • +
    • + + Hassium + + + + + + +
    • +
    • + + Meitnerium + + + + + + +
    • +
    • + + Darmstadtium + + + + + + +
    • +
    • + + Roentgenium + + + + + + +
    • +
    • + + Copernicium + + + + + + +
    • +
    • + + Nihonium + + + + + + +
    • +
    • + + Flerovium + + + + + + +
    • +
    • + + Moscovium + + + + + + +
    • +
    • + + Livermorium + + + + + + +
    • +
    • + + Tennessine + + + + + + +
    • +
    • + + Oganesson + + + + + + +
    • +
    +
    +
    +
    + +
    + +
    +

    Accessibility Features

    + +
    + +
    +

    Keyboard Support

    +

    + The example listbox on this page implements the following keyboard interface. + Other variations and options for the keyboard interface are described in the Keyboard Interaction section of the Listbox Pattern. +

    +

    + NOTE: When visual focus is on an option in this listbox implementation, DOM focus remains on the listbox element and the value of aria-activedescendant on the listbox refers to the descendant option that is visually indicated as focused. + Where the following descriptions of keyboard commands mention focus, they are referring to the visual focus indicator, not DOM focus. + For more information about this focus management technique, see + Managing Focus in Composites Using aria-activedescendant. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    KeyFunction
    TabMoves focus into and out of the listbox.
    Down ArrowMoves focus to and selects the next option.
    Up ArrowMoves focus to and selects the previous option.
    Right Arrow +
      +
    • If an option has focus, moves focus to the first action button.
    • +
    • If an action button has focus, moves focus to the next action button for the current option.
    • +
    • If the last action button has focus, does nothing.
    • +
    +
    Left Arrow +
      +
    • If any action button except for the first action button has focus, moves focus to the previous action button for the current option.
    • +
    • If the first action button has focus, moves focus to the current option.
    • +
    • If an option has focus, does nothing.
    • +
    +
    HomeMoves focus to and selects the first option.
    EndMoves focus to and selects the last option.
    Printable Characters +
      +
    • Type a character: focus moves to the next item with a name that starts with the typed character.
    • +
    • Type multiple characters in rapid succession: focus moves to the next item with a name that starts with the string of characters typed.
    • +
    +
    +
    + +
    +

    Role, Property, State, and Tabindex Attributes

    +

    + The example listbox on this page implements the following ARIA roles, states, and properties. + Information about other ways of applying ARIA roles, states, and properties is available in the Roles, States, and Properties section of the Listbox Pattern. +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    RoleAttributeElementUsage
    listboxulIdentifies the focusable element that has listbox behaviors and contains the listbox options.
    aria-labelledby="ID_REF"ulRefers to the element containing the listbox label.
    tabindex="0"ulIncludes the listbox in the page tab sequence.
    aria-activedescendant="ID_REF"ul +
      +
    • When an option in the listbox is visually indicated as having keyboard focus, refers to that option.
    • +
    • Enables assistive technologies to know which element the application regards as focused while DOM focus remains on the listbox element.
    • +
    • When navigation keys, such as Down Arrow, are pressed, the JavaScript changes the value.
    • +
    • + For more information about this focus management technique, see + Managing Focus in Composites Using aria-activedescendant. +
    • +
    +
    optionliIdentifies each selectable element containing the name of an option.
    aria-selected="true"li +
      +
    • Indicates that the option is selected.
    • +
    • Applied to the element with role option that is visually styled as selected.
    • +
    • The option with this attribute is always the same as the option that is referenced by aria-activedescendant because it is a single-select listbox where selection follows focus.
    • +
    +
    aria-actions=""li +
      +
    • Indicates to assistive technologies that the option will have actions available on focus or hover, enabling the assistive technology to focus the element to gain access to the actions.
    • +
    • Applied to all elements with role option when they are not visually styled as selected and are not referenced by aria-activedescendant.
    • +
    +
    aria-actions="ID_REFS"li +
      +
    • Specifies the ID attributes of the action buttons that are associated with the option.
    • +
    • Applied to the element with role option that is visually styled as selected and is referenced by aria-activedescendant.
    • +
    +
    aria-hidden="true"span + Removes the character entity used for the check mark icon from the accessibility tree to prevent it from being included in the accessible name of the option. +
    +
    + +
    +

    JavaScript and CSS Source Code

    + +
    + +
    +

    HTML Source Code

    +

    To copy the following HTML code, please open it in CodePen.

    + +
    + + +
    +
    + +