Skip to content

Commit

Permalink
Keyboard accessibility updates for docs (#69)
Browse files Browse the repository at this point in the history
* Adds skip to link for keyboard users

* Makes navigation wrapper a nav element for screenreader support

* Adds role contentinfo to footer for screenreader support

* Built doc files
  • Loading branch information
alexcarpenter authored and claviska committed Dec 11, 2017
1 parent aa6ee1b commit 17b1732
Show file tree
Hide file tree
Showing 21 changed files with 100 additions and 61 deletions.
7 changes: 4 additions & 3 deletions docs/alerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Alerts</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -83,7 +84,7 @@ <h2 id="variations">Variations</h2>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/attribution.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Attribution</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand All @@ -68,7 +69,7 @@ <h2 id="attribution">Attribution</h2>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/badges.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Badges</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -112,7 +113,7 @@ <h3 id="badge-links">Badge Links</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/browser-support.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Browser Support</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand All @@ -73,7 +74,7 @@ <h2 id="browser-support">Browser Support</h2>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Buttons</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -169,7 +170,7 @@ <h3 id="loader-buttons">Loader Buttons</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Content</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -196,7 +197,7 @@ <h3 id="preformatted-text-pre-">Preformatted Text <code>&lt;pre&gt;</code></h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/customizing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Customizing</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -110,7 +111,7 @@ <h3 id="creating-custom-components">Creating Custom Components</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/dropdowns.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Dropdowns</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -196,7 +197,7 @@ <h3 id="interactivity">Interactivity</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/file-buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>File Buttons</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -145,7 +146,7 @@ <h3 id="variations">Variations</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<title>Forms</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -28,7 +29,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -50,7 +51,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -638,7 +639,7 @@ <h3 id="validation">Validation</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
7 changes: 4 additions & 3 deletions docs/grid-system.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<title>Grid System</title>
</head>
<body>
<a href="#content" class="skip">Skip to content</a>

<header id="head" class="text-center">
<h1>
Expand All @@ -27,7 +28,7 @@ <h1>

<main class="container">
<div class="row">
<div class="col-md-3">
<nav class="col-md-3">
<ul id="nav">
<li><a href="installing.html">Installing</a></li>
<li><a href="customizing.html">Customizing</a></li>
Expand All @@ -49,7 +50,7 @@ <h1>
<li><a href="browser-support.html">Browser Support</a></li>
<li><a href="attribution.html">Attribution</a></li>
</ul>
</div>
</nav>

<div class="col-md-9">
<div id="content">
Expand Down Expand Up @@ -303,7 +304,7 @@ <h3 id="nested-grids">Nested Grids</h3>
</div>
</main>

<footer id="foot">
<footer id="foot" role="contentinfo">
<a href="../index.html">
<img src="../source/img/wordmark.svg" alt="Shoelace logo">
</a>
Expand Down
Loading

0 comments on commit 17b1732

Please sign in to comment.