From 70c1dc204e6ae979a3b5f02da67c696d2dd8322d Mon Sep 17 00:00:00 2001 From: Matt King Date: Thu, 9 Feb 2017 14:43:19 -0800 Subject: [PATCH] Editorial, Template, and Functional Updates to Example of Tabs With Manual Activation modified examples/tabs/tabs-2/tabs.html: 1. Move examples.js script element to head and fix src attribute path so HTML source will display. 2. Make H1 content match page title. 3. Editorial revisions to introduction. 4. Correct href of link to tabs design pattern in introduction. 5. Added link to section that provides guidance on selection follows focus. 6. Per example template, Removed region around example and replaced with screen reader sepearator elements. 7. Added `aria-label="Entertainment"` to the tablist. 8. Added `tabindex="0"` to the tabpanel elements 9. Editorial revisions to the keyboard table. 10. Remove delete from keyboard table since it is not supported. 11. In roles, states and properties table: * added scope attribute and TH elements per template. * Added row for aria-label on tablist * Added rows for aria-selected true and false on tab * Added row for aria-labelledby on tabpanel * Added row for tabindex on tabpanel. 12. Per template, Added screen reader separators around HTML source display and removed role region from the source code display div. 13. Corrected href attribute of link to tabs design pattern in footer nav. 14. Added link to review issue #279. --- examples/tabs/tabs-2/tabs.html | 276 ++++++++++++++++++++++----------- 1 file changed, 187 insertions(+), 89 deletions(-) diff --git a/examples/tabs/tabs-2/tabs.html b/examples/tabs/tabs-2/tabs.html index f4711179f3..5c622eb25c 100644 --- a/examples/tabs/tabs-2/tabs.html +++ b/examples/tabs/tabs-2/tabs.html @@ -2,79 +2,60 @@ - - - Tabs With Manual Activation | WAI-ARIA Authoring Practices 1.1 + - +
- -

Tabs (Manual activation)

- +

Tabs With Manual Activation

- - The below example section demonstrates a tabs widget that implements the design pattern for tabs. - In this example panels are shown after you activate a tab with either space, enter, or a click. + Please provide feedback on updates to this page in + issue 279. +

+

+ The below example section demonstrates a tabs widget that implements the tabs design pattern. + In this example, a new panel is displayed only after the user activates a tab with either Space, Enter, or a mouse click. + Typically, manual activation of tabs is only necessary when panels cannot be displayed instantly, i.e., not all the panel content is present in the DOM. + For additional guidance, see Deciding When to Make Selection Automatically Follow Focus.

-

Similar examples include:

Example

-
- -
- -
-
- - - -
+ +
+
+
+ + + +
-
-

Nils Frahm is a German musician, composer and record producer based in Berlin. He is known for combining classical and electronic music and for an unconventional approach to the piano in which he mixes a grand piano, upright piano, Roland Juno-60, Rhodes piano, drum machine, and Moog Taurus.

-
+
+

Nils Frahm is a German musician, composer and record producer based in Berlin. He is known for combining classical and electronic music and for an unconventional approach to the piano in which he mixes a grand piano, upright piano, Roland Juno-60, Rhodes piano, drum machine, and Moog Taurus.

+
- + - +
+