From a8d95d4721e714a7e1d683e14e997faa5ccddaff Mon Sep 17 00:00:00 2001 From: adamjacobbecker Date: Tue, 6 Aug 2013 21:25:36 -0700 Subject: [PATCH] Improve accessibility (Section 508, WCAG) 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. --- _includes/nav-getting-started.html | 3 + _includes/nav-main.html | 3 +- _includes/social-buttons.html | 4 +- _layouts/customize.html | 5 +- _layouts/default.html | 9 ++- _layouts/home.html | 3 +- components.html | 126 +++++++++++++++++------------ css.html | 22 ++++- dist/css/bootstrap.css | 11 +++ dist/css/bootstrap.min.css | 2 +- getting-started.html | 33 ++++++++ index.html | 2 +- javascript.html | 22 ++++- less/scaffolding.less | 14 ++++ 14 files changed, 189 insertions(+), 70 deletions(-) diff --git a/_includes/nav-getting-started.html b/_includes/nav-getting-started.html index 9788facdda..ad574b6211 100644 --- a/_includes/nav-getting-started.html +++ b/_includes/nav-getting-started.html @@ -17,6 +17,9 @@
  • Third party support
  • +
  • + Accessibility +
  • License FAQs
  • diff --git a/_includes/nav-main.html b/_includes/nav-main.html index a9604f5884..6b5742cd1f 100644 --- a/_includes/nav-main.html +++ b/_includes/nav-main.html @@ -1,6 +1,7 @@ -