apex4x
Version:
The Comprehensive ARIA Development Suite
240 lines (237 loc) • 8.56 kB
HTML
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sortable ARIA Listbox - Apex 4X Technical Style Guide</title>
<meta name="description" content="Scalable ARIA Components" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
type="text/css"
href="../../_common/css/components-style.css"
/>
<link rel="stylesheet" type="text/css" href="css/listbox.css" />
<script src="/4X/4X.js"></script>
<script src="js/setup.js"></script>
</head>
<body>
<div class="bypass">
<ul class="list-unstyled">
<li>
<a
class="skip--link"
href="javascript:void(0);"
onclick="document.getElementById('main').focus();"
>
Skip to Main Content
</a>
</li>
</ul>
</div>
<div class="outer-wrapper">
<header class="header flex-container">
<div class="logo flex-item">
<a href="https://whatsock.com">
<img
alt="WhatSock : Changing the world one step at a time"
src="../../_common/img/whatsock.svg"
/></a>
</div>
<div class="site-name flex-item">
<strong>Apex 4X</strong> Technical Style Guide
</div>
</header>
<div class="wrapper">
<div class="left-aside">
<nav>
<p>
<a href="/Tutorials/Beginner-Introduction.htm"
>Beginner Tutorial</a
>
</p>
<h2>Template Examples</h2>
<ul>
<li><a href="../../index.htm">Back to Components</a></li>
<li><a href="../index.htm">Back to Parent Widget</a></li>
<li><a href="../Checkable/index.htm">Checkable</a></li>
<li><a href="../Multiselect/index.htm">Multiselect</a></li>
<li><a href="index.htm" aria-current="page">Sortable</a></li>
<li><a href="../Standard/index.htm">Standard</a></li>
<li>
<a href="../Standard%20-%20Straylight/index.htm"
>Standard - Straylight</a
>
</li>
<li>
<a href="../Standard%20(External)/index.htm"
>Standard (External)</a
>
</li>
</ul>
</nav>
</div>
<main id="main" class="main" tabindex="-1">
<div class="demo-block flex-container">
<div class="component flex-item">
<h1 class="pageTitle">ARIA Listbox <small> (Sortable)</small></h1>
<div class="sample">
<div class="sortableWrapper">
<ul class="aria-listbox" id="listboxId">
<li>
<button class="option orange" id="sortableOptOrange">
<span>Orange</span>
</button>
</li>
<li>
<button class="option purple" id="sortableOptPurple">
<span>Purple</span>
</button>
</li>
<li>
<button class="option green" id="sortableOptGreen">
<span>Green</span>
</button>
</li>
<li>
<button class="option blue" id="sortableOptBlue">
<span>Blue</span>
</button>
</li>
<li>
<button class="option black" id="sortableOptBlack">
<span>Black</span>
</button>
</li>
</ul>
</div>
</div>
<div class="note">
<p>The list items within the ARIA Listbox are sortable.</p>
</div>
</div>
<div class="keyboard flex-item">
<h2>The sortable listbox is keyboard accessible:</h2>
<ul>
<li>Set focus on the Listbox or the Select field.</li>
<li>
Press the Arrow keys to change options, or press
<kbd class="home">Home</kbd> or <kbd class="end">End</kbd> to
jump to the beginning or end of the list.
</li>
<li>
Press <kbd>PageDown</kbd> or <kbd>PageUp</kbd> to jump
backward or forward incrementally.
</li>
<li>
Press any letter or number to jump to an item starting with
that character or digit.
</li>
<li>
Press the <kbd>Spacebar</kbd> to toggle grabbability on the
ARIA Listbox.
</li>
<li>
Use the Arrow keys to navigate to a new location, then use the
<kbd>Spacebar</kbd> to drop the grabbed item.
</li>
<li>
Press <kbd>Escape</kbd> to cancel a grab action without
dropping.
</li>
<li>
Mouse users can click a list item to grab it, then click
another item to drop the grabbed item in that location.
</li>
</ul>
</div>
</div>
</main>
</div>
<footer class="footer">
<div class="flex-container-row">
<div class="flex-item">
<h2>License</h2>
<p>
Apex 4X including all template design patterns is distributed
under the terms of the Open Source Initiative OSI - MIT License,
and may be freely used for any purpose within any web technology.
</p>
</div>
<div class="flex-item">
<h2>Resources</h2>
<ul>
<li>
<a target="ext" href="https://github.com/WhatSock/apex"
>Apex 4X on GitHub</a
>
</li>
<li>
<a
target="ext"
href="https://whatsock.github.io/visual-aria/github-bookmarklet/visual-aria.htm"
>Visual ARIA Bookmarklet</a
>
</li>
<li>
<a
target="ext"
href="https://chrome.google.com/webstore/detail/visual-aria/lhbmajchkkmakajkjenkchhnhbadmhmk"
>Visual ARIA Chrome Extension</a
>
</li>
<li>
<a
target="ext"
href="https://addons.mozilla.org/en-US/firefox/addon/visual-aria/"
>Visual ARIA Firefox Extension</a
>
</li>
<li>
<a target="ext" href="https://github.com/AccDC/visual-aria"
>Visual ARIA on GitHub</a
>
</li>
<li>
<a target="ext" href="https://whatsock.com/training/matrices/"
>ARIA Role Conformance Matrices</a
>
</li>
<li>
<a target="ext" href="https://whatsock.com/training/"
>Accessibility Tree Training Guide</a
>
</li>
</ul>
</div>
<div class="flex-item">
<h2>Acknowledgements</h2>
<ul class="list--horizontal">
<li>
Author and developer:
<a target="ext" href="https://www.linkedin.com/in/bgaraventa"
>Bryan Garaventa</a
>
</li>
<li>
Website designer:
<a target="ext" href="https://gericci.me/">Angela Ricci</a>
</li>
<li>
Style and markup editor:
<a
target="ext"
href="https://www.linkedin.com/in/laurence-lewis-77520365/"
>Laurence Lewis</a
>
</li>
</ul>
</div>
</div>
</footer>
</div>
</body>
<script
async
src="https://api.whatsock.com/accdc-updates.js?4x=template"
></script>
</html>