mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
a8d95d4721
This PR significantly improves Bootstrap's accessibility for users of assistive technology, such as screen readers. Some of the these changes add additional markup to the source examples, but we believe that the sacrifice in readability is worth achieving more widespread usage of accessibility best-practices. What was done - Added lots of [WAI-ARIA attributes](http://www.w3.org/WAI/intro/aria) - Added `.sr-only` helper class, that is only readable by screen readers (and invisible for all other users). This lets us - make progress bars and paginations accessible to screen reading users. - Advised users to always use label elements. For inline forms, they can hide them with `.sr-only` - Added 'Skip navigation' link - Added "Accessibility" section to getting-started.html. What *wasn't* done - Contrast issues (twbs#3572) - Tooltips (twbs#8469) - Documentation re: usage of icons, since they now live in a separate repo Major props to all that contributed: @bensheldon, @jasonlally, @criscristina, and @louh. Feel free to chime in, guys, if I've left anything out.
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Meta, title, CSS, favicons, etc. -->
|
|
{% include header.html %}
|
|
<!-- Place anything custom after this. -->
|
|
</head>
|
|
<body data-spy="scroll" data-target=".bs-sidebar">
|
|
<a class="sr-only" href="#content">Skip navigation</a>
|
|
|
|
<!-- Docs master nav -->
|
|
{% include nav-main.html %}
|
|
|
|
<!-- Docs page layout -->
|
|
<div class="bs-header" id="content" role="banner">
|
|
<div class="container">
|
|
<h1>{{ page.title }}</h1>
|
|
<p>{{ page.lead }}</p>
|
|
{% include ads.html %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Callout for the old docs link -->
|
|
{% include old-bs-docs.html %}
|
|
|
|
<div class="bs-customize-placeholder" role="main">
|
|
<div class="container bs-docs-container">
|
|
<p class="lead">Until RC2, the Bootstrap 3 customizer will be disabled. In the mean time, snag the <a href="{{ site.repo }}/releases">compiled CSS and JavaScript</a>. Hang tight!</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer
|
|
================================================== -->
|
|
<footer class="bs-footer">
|
|
{% include social-buttons.html %}
|
|
|
|
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
|
|
<p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
|
<ul class="footer-links">
|
|
<li><a href="{{ site.blog }}">Blog</a></li>
|
|
<li class="muted">·</li>
|
|
<li><a href="{{ site.repo }}/issues?state=open">Issues</a></li>
|
|
<li class="muted">·</li>
|
|
<li><a href="{{ site.repo }}/releases">Releases</a></li>
|
|
</ul>
|
|
</footer>
|
|
|
|
<!-- JS and analytics only. -->
|
|
{% include footer.html %}
|
|
|
|
</body>
|
|
</html>
|