我试图将键盘导航添加到 Twitter 引导手风琴以启用 Web 可访问性,类似于http://hanshillen.github.io/jqtest/#goto_accordion。
我无法执行以下操作:
- 一旦重点放在手风琴标签上,我就不能只浏览手风琴标题。当我点击选项卡时,它会导航组中的所有内部链接,然后导航到下一个标题。
- 我无法使用向上/向下箭头键
- 在最后一个手风琴标题选项卡 thro' 之后,焦点转移到手风琴之外。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Getting Started</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
</head>
<body>
<div class="row-fluid" id="main">
<div class="container">
<div class="row-fluid">
<div class="gutter10">
<div class="row-fluid">
<div class="span3" id="sidebar">
<div class="selections">
<h4 class="graydrkbg">Hello</h4>
</div>
</div>
<!--sidebar-->
<div class="span9" id="rightpanel">
<div class="gutter10">
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Collapsible Group Item #1
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<p>
<a href="http://en.wikipedia.org/wiki/Dogs" class="">More information about Dogs on Wikipedia</a>
</p>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
Collapsible Group Item #2
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
<p>Anim pariatur cliche...</p>
<p>
<a href="http://en.wikipedia.org/wiki/Dogs" class="">More information about Dogs on Wikipedia</a>
</p>
</div>
</div>
</div>
</div>
</div><!--gutter10-->
</div><!--rightpanel-->
</div><!--row-fluid-->
</div><!--gutter10-->
<!--container-->
</div><!--main-->
<!--footer-->
<script src="../js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../js/bootstrap.js" type="text/javascript"></script>
</body>
</html>