Radio Group Example Using Roving tabindex

diff --git a/examples/radio/radio-2/js/radioButtonActiveDescendant.js b/examples/radio/radio-2/js/radioButtonActiveDescendant.js index 7183f91fa6..c50e28c54d 100644 --- a/examples/radio/radio-2/js/radioButtonActiveDescendant.js +++ b/examples/radio/radio-2/js/radioButtonActiveDescendant.js @@ -1,17 +1,17 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: RadioButtonActiveDescendant.js -* -* Desc: Radio widget using aria-activedescendant that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: RadioButtonActiveDescendant.js + * + * Desc: Radio widget using aria-activedescendant that implements ARIA Authoring Practices + */ /* -* @constructor RadioButtonActiveDescendantActiveDescendant -* -* -*/ + * @constructor RadioButtonActiveDescendantActiveDescendant + * + * + */ var RadioButtonActiveDescendant = function (domNode, groupObj) { this.domNode = domNode; diff --git a/examples/radio/radio-2/js/radioGroupActiveDescendant.js b/examples/radio/radio-2/js/radioGroupActiveDescendant.js index 96facfea8c..d20ac7d2bf 100644 --- a/examples/radio/radio-2/js/radioGroupActiveDescendant.js +++ b/examples/radio/radio-2/js/radioGroupActiveDescendant.js @@ -1,22 +1,22 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: radioGroup.js -* -* Desc: Radio group widget using aria-activedescendant that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: radioGroup.js + * + * Desc: Radio group widget using aria-activedescendant that implements ARIA Authoring Practices + */ /* -* @constructor radioGroupActiveDescendent -* -* @desc -* Wrapper for ARIA radiogroup control using ARIA active-descendant. Any descendant -* element with role=radio will be included in this radiogroup as a radiobutton2. -* -* @param domNode -* The DOM element node that serves as the radiogroup container. -*/ + * @constructor radioGroupActiveDescendent + * + * @desc + * Wrapper for ARIA radiogroup control using ARIA active-descendant. Any descendant + * element with role=radio will be included in this radiogroup as a radiobutton2. + * + * @param domNode + * The DOM element node that serves as the radiogroup container. + */ var RadioGroup = function (domNode) { this.domNode = domNode; diff --git a/examples/radio/radio-2/radio-2.html b/examples/radio/radio-2/radio-2.html index bcfaf2b8cb..06459d2ef6 100644 --- a/examples/radio/radio-2/radio-2.html +++ b/examples/radio/radio-2/radio-2.html @@ -36,7 +36,7 @@

Radio Group Example Using aria-activedescendant

-
+

Example

diff --git a/examples/slider/images/max-arrow.paint b/examples/slider/images/max-arrow.paint index 232fa40aaad5cf512189912b7ea1120c8e0d7bb8..561b494ab5e6d62962e651bb126632cd995e262b 100644 GIT binary patch literal 13542 zcmeHO=}#kDcCRXLU^W{JG^*1_L?ca}Lysq>XPz#7@$BF@{33a!leu`$RJNuSW|1Y)jce0*42?9= z$(b|=p=0dn9d{u}cA`2y2;nwPPVJd2i{90_>FE_I8k6EURxyD&3$GE#^O$Q27Zx}t z$C+}J+`rY|j=(*SfEMk&05IiLdCy(k+MG-6H8TUoZ{6{poK?5+1xFWm-i+AeQ{-|} zn|Dp{wyWSxeSEzAu33J3j~~{;H#N`6&pa#H=-+iTDL(HrXZj&ID*H5khFq1tK1Q#6 zqC7t)r_6nG?>)cF*6)Mg&wrcy$Rt}E^Dus%>s_|qZ?YNSczvhLZffa1?eBZHcb|QJ zU0c%#xas_T-M;tjr%wpy*YdgVKE7@5n=k@}cm_sKzj)3D!Dnzm=J>pC!mQ>sDG$PV zeToaA5bB6MgaMf_HkA8kn1M+u{f# zp572nd(hF)Qf`}Fvf0w!_hM#WG?u_IEFrqbFU5V})F#J;&Jt1bu$txIm}&xzo+XB4 z!5P5ZSKfPR19Bm92)`Jiz}w_wqfA=yN3Gv+q&CvO4RLEry6xTp)<}R zaOlhOS>($=)AscKXU$r1u3<4DVBb{!@X(czAc zv$M1IpyX?(p;ouA4NxO*CK>&;Q-A8H+9svvVltGl(Qy0luss>G#pxll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*MqNbyAglm_z(SmxN=i}^U=gj&wiHue55I->B=vLU!MLt^|s6H6~A@=ZTFqDJKx?dyZh+g>ax|T9F|>hAG6;|+gIAJ4 zfHaw`g@J%HnHe!F0YCuAk5hokg&1VAB}fA=2v8c5fze3@l0dc-X{J+v(vS?&KtP(T z5oyejfq>GG4ALM5nH(leuBQO0p%|z^fHXM|Y0@AA0i_`sq(KZaxe#drDL`pR25BH5 z4Y@J75Hb)@8j?X8#2}N)kfs?>8j?X82uMR!!B8s^pfrd9QJh(RWw ziKxs$@X%K@9eG|xM9sx>2GDw3M zWb$)JvyuXohGdWi0@CD-NP`#%NRwZ0VIZKGrWOVQih&uZTo9bhkK`6)_R36E!k>8x zo^N14NCas?VPV2HZ-AM7Mx9>7B?cFl6l;bI$s`Y~WF->lM|)PT(xft&vU11|o>0N3 z!C`<3yZdta5mwf7bN7u_$H|C0Bm{D1Ji=zoR# zh4TO1e(V(iUK*c2C|>fzCB_%+5B`?~fAqgt#H;+R6|eR`57LJJSrKjen-#C|lR;kR z|Ihi%d>(+)7j0QCIdwsEkXo%2GUa-5&Vptqb>#}g7>t8bl_?b_bm)#e##d)BN#XG_ z5<`Dw)qpgWMrTS<>EKa2L+vo>3-|dvn^a{oQB4%dn~yY}7%?)#P+o2_V{rAB4_x8; z3bneT0GXfwRKT^A32+r<30Mm1z=vQtJVEmbsE4a4d*M3DLGUG9MY#%Y!}SvexppGL zd@x_E3l@L{VnJ94)*Xw&5-}x~kE!6ANgehfwi?@r?Z6IWN3rwR_t;JBHV)vL2?J-5 z>n2XP8y|z$ zTRc%bOT0q7TD+cm=JA%t4(*k-GVv#7ya64#eAPL@fzL)G79RhsPZ`blymDv41tTv8*MCYd9dC#j|KKWmp8b>DK8Ec-vTRCK%m diff --git a/examples/slider/js/multithumb-slider.js b/examples/slider/js/multithumb-slider.js index 8c6dc707ad..27fb38e2a6 100644 --- a/examples/slider/js/multithumb-slider.js +++ b/examples/slider/js/multithumb-slider.js @@ -1,11 +1,11 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: slider.js -* -* Desc: Slider widget that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: slider.js + * + * Desc: Slider widget that implements ARIA Authoring Practices + */ // Create Slider that contains value, valuemin, valuemax, and valuenow var Slider = function (domNode) { diff --git a/examples/slider/js/slider.js b/examples/slider/js/slider.js index d7cc2826e3..5c2ffc4778 100644 --- a/examples/slider/js/slider.js +++ b/examples/slider/js/slider.js @@ -1,11 +1,11 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: slider.js -* -* Desc: Slider widget that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: slider.js + * + * Desc: Slider widget that implements ARIA Authoring Practices + */ // Create Slider that contains value, valuemin, valuemax, and valuenow var Slider = function (domNode) { diff --git a/examples/slider/js/text-slider.js b/examples/slider/js/text-slider.js index 4f32dbadb9..2392b5d83c 100644 --- a/examples/slider/js/text-slider.js +++ b/examples/slider/js/text-slider.js @@ -1,11 +1,11 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: text-slider.js -* -* Desc: Text slider widget that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: text-slider.js + * + * Desc: Text slider widget that implements ARIA Authoring Practices + */ // Create Text Slider that contains value, valuemin, valuemax, and valuenow diff --git a/examples/slider/js/vertical-slider.js b/examples/slider/js/vertical-slider.js index 254b9e98a9..e13d65755f 100644 --- a/examples/slider/js/vertical-slider.js +++ b/examples/slider/js/vertical-slider.js @@ -1,11 +1,11 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: vertical-slider.js -* -* Desc: Vertical slider widget that implements ARIA Authoring Practices -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: vertical-slider.js + * + * Desc: Vertical slider widget that implements ARIA Authoring Practices + */ // Create Vertical Slider that contains value, valuemin, valuemax, and valuenow var VSlider = function (domNode) { diff --git a/examples/slider/slider-1.html b/examples/slider/slider-1.html index 4a5631c7ef..4780a81348 100644 --- a/examples/slider/slider-1.html +++ b/examples/slider/slider-1.html @@ -27,7 +27,7 @@

Horizontal Slider Example

- Following is an example of a color picker that demonstrates the + Following is an example of a color picker that demonstrates the slider design pattern. Change the background color of the box below the picker by adjusting the sliders for red, green, and blue values. The HEX and RGB values of the chosen color are displayed by the color box. @@ -35,26 +35,26 @@

Horizontal Slider Example

Similar examples include:

-

Example

- +

Example

+
Red
+ role="slider" + tabindex="0" + class="thumb" + aria-valuemin="0" + aria-valuenow="0" + aria-valuemax="255" + aria-labelledby="idRed">
0
@@ -63,13 +63,13 @@

Example

+ role="slider" + tabindex="0" + class="thumb" + aria-valuemin="0" + aria-valuenow="0" + aria-valuemax="255" + aria-labelledby="idGreen">
0
@@ -78,13 +78,13 @@

Example

+ role="slider" + tabindex="0" + class="thumb" + aria-valuemin="0" + aria-valuenow="0" + aria-valuemax="255" + aria-labelledby="idBlue">
0
@@ -96,7 +96,7 @@

Color Box

- +
diff --git a/examples/slider/slider-2.html b/examples/slider/slider-2.html index b02e9942bc..ce995e6e30 100644 --- a/examples/slider/slider-2.html +++ b/examples/slider/slider-2.html @@ -28,7 +28,7 @@

Slider Examples with aria-orientation and aria-valuetext

- The following example of a hypothetical online thermostat demonstrates the + The following example of a hypothetical online thermostat demonstrates the slider design pattern. The desired temperature is set with the first slider, which is vertically oriented. Two horizontal sliders set fan speed and mode. @@ -38,7 +38,7 @@

Slider Examples with aria-orientation and aria-valuetext

- +

Example

diff --git a/examples/tabs/tabs-1/js/tabs.js b/examples/tabs/tabs-1/js/tabs.js index 224d4ba2da..a055a54342 100644 --- a/examples/tabs/tabs-1/js/tabs.js +++ b/examples/tabs/tabs-1/js/tabs.js @@ -1,7 +1,7 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + */ (function () { var tablist = document.querySelectorAll('[role="tablist"]')[0]; var tabs; diff --git a/examples/tabs/tabs-1/tabs.html b/examples/tabs/tabs-1/tabs.html index 7ac922f445..875bb5f6ff 100644 --- a/examples/tabs/tabs-1/tabs.html +++ b/examples/tabs/tabs-1/tabs.html @@ -22,7 +22,7 @@
  • Related Issues
  • Design Pattern
  • - +

    Example of Tabs with Automatic Activation

    diff --git a/examples/tabs/tabs-2/js/tabs.js b/examples/tabs/tabs-2/js/tabs.js index 23c38d6045..21c311be72 100644 --- a/examples/tabs/tabs-2/js/tabs.js +++ b/examples/tabs/tabs-2/js/tabs.js @@ -1,7 +1,7 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + */ (function () { var tablist = document.querySelectorAll('[role="tablist"]')[0]; var tabs; diff --git a/examples/toolbar/js/FontMenu.js b/examples/toolbar/js/FontMenu.js index 2b34b30495..e6d5779b29 100644 --- a/examples/toolbar/js/FontMenu.js +++ b/examples/toolbar/js/FontMenu.js @@ -1,9 +1,9 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: FontMenu.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: FontMenu.js + */ var FontMenu = function (domNode, controllerObj) { var elementChildren, @@ -45,13 +45,13 @@ var FontMenu = function (domNode, controllerObj) { }; /* -* @method FontMenu.prototype.init -* -* @desc -* Add domNode event listeners for mouseover and mouseout. Traverse -* domNode children to configure each menuitem and populate menuitems -* array. Initialize firstItem and lastItem properties. -*/ + * @method FontMenu.prototype.init + * + * @desc + * Add domNode event listeners for mouseover and mouseout. Traverse + * domNode children to configure each menuitem and populate menuitems + * array. Initialize firstItem and lastItem properties. + */ FontMenu.prototype.init = function () { var menuitemElements, menuitemElement, menuItem, textContent, numItems; diff --git a/examples/toolbar/js/FontMenuButton.js b/examples/toolbar/js/FontMenuButton.js index 7c5d114003..7e8653d3d0 100644 --- a/examples/toolbar/js/FontMenuButton.js +++ b/examples/toolbar/js/FontMenuButton.js @@ -1,9 +1,9 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: FontMenuButton.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: FontMenuButton.js + */ FontMenuButton = function (node, toolbar, toolbarItem) { @@ -80,4 +80,3 @@ FontMenuButton.prototype.setFontFamily = function (font) { this.domNode.setAttribute('aria-label', 'Font: ' + font); this.toolbar.activateItem(this); }; - diff --git a/examples/toolbar/js/FontMenuItem.js b/examples/toolbar/js/FontMenuItem.js index ca26b5226c..8bfb6b6299 100644 --- a/examples/toolbar/js/FontMenuItem.js +++ b/examples/toolbar/js/FontMenuItem.js @@ -1,26 +1,26 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: FontMenuItem.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: FontMenuItem.js + */ /* -* @constructor MenuItem -* -* @desc -* Wrapper object for a simple menu item in a popup menu -* -* @param domNode -* The DOM element node that serves as the menu item container. -* The menuObj PopupMenu is responsible for checking that it has -* requisite metadata, e.g. role="menuitem". -* -* @param menuObj -* The object that is a wrapper for the PopupMenu DOM element that -* contains the menu item DOM element. See PopupMenuAction.js -*/ + * @constructor MenuItem + * + * @desc + * Wrapper object for a simple menu item in a popup menu + * + * @param domNode + * The DOM element node that serves as the menu item container. + * The menuObj PopupMenu is responsible for checking that it has + * requisite metadata, e.g. role="menuitem". + * + * @param menuObj + * The object that is a wrapper for the PopupMenu DOM element that + * contains the menu item DOM element. See PopupMenuAction.js + */ var FontMenuItem = function (domNode, fontMenu) { this.domNode = domNode; diff --git a/examples/toolbar/js/FormatToolbar.js b/examples/toolbar/js/FormatToolbar.js index 8e888207e2..7a3abb0bab 100644 --- a/examples/toolbar/js/FormatToolbar.js +++ b/examples/toolbar/js/FormatToolbar.js @@ -1,9 +1,9 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: FormatToolbar.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: FormatToolbar.js + */ /** * @constructor @@ -325,13 +325,13 @@ FormatToolbar.prototype.setFocusToLast = function (currentItem) { // Initialize toolbars /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* ARIA Toolbar Examples -* @function onload -* @desc Initialize the toolbar example once the page has loaded -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * ARIA Toolbar Examples + * @function onload + * @desc Initialize the toolbar example once the page has loaded + */ window.addEventListener('load', function () { var toolbars = document.querySelectorAll('[role="toolbar"].format'); diff --git a/examples/toolbar/js/FormatToolbarItem.js b/examples/toolbar/js/FormatToolbarItem.js index f3e82c4fe9..80e6768566 100644 --- a/examples/toolbar/js/FormatToolbarItem.js +++ b/examples/toolbar/js/FormatToolbarItem.js @@ -1,9 +1,9 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: FontToolbarItem.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: FontToolbarItem.js + */ FormatToolbarItem = function (domNode, toolbar) { this.domNode = domNode; diff --git a/examples/toolbar/js/SpinButton.js b/examples/toolbar/js/SpinButton.js index 6440bc4e43..ed450e7a02 100644 --- a/examples/toolbar/js/SpinButton.js +++ b/examples/toolbar/js/SpinButton.js @@ -1,9 +1,9 @@ /* -* This content is licensed according to the W3C Software License at -* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document -* -* File: SpinButton.js -*/ + * This content is licensed according to the W3C Software License at + * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document + * + * File: SpinButton.js + */ // Create SpinButton that contains value, valuemin, valuemax, and valuenow var SpinButton = function (domNode, toolbar) { diff --git a/examples/toolbar/toolbar.html b/examples/toolbar/toolbar.html index cfb7b647ef..e61506d6d5 100644 --- a/examples/toolbar/toolbar.html +++ b/examples/toolbar/toolbar.html @@ -78,8 +78,8 @@

    Example

    + role="radiogroup" + aria-label="Text Alignment">