Skip to content

Commit

Permalink
Added ARIA live regions for accessibility (fixes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagawa committed Mar 24, 2015
1 parent 4113bab commit 2dbf99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
<span id="greeting"></span> Which news source?
</div>

<div id="sources"></div>
<div id="sources" aria-live="polite"></div>

<div id="news"></div>
<div id="news" aria-live="polite"></div>

</div> <!-- /container -->

Expand Down
2 changes: 1 addition & 1 deletion js/newsforbetty.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $(document).ready(function () {

function showSources(){
$.each(sources, function(index,item){
$('#sources').append('<button type="button" class="btn btn-lg btn-primary" data-source="' + index + '"> ' + item.name +'</button> ');
$('#sources').append('<button type="button" class="btn btn-lg btn-primary" aria-controls="news" data-source="' + index + '"> ' + item.name +'</button> ');
});
}

Expand Down

0 comments on commit 2dbf99e

Please sign in to comment.