Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1984 from cormacmccarthy/GH1964---tree-should-be-…
Browse files Browse the repository at this point in the history
…accessible

Makes tree accessible
  • Loading branch information
futuremint authored Jun 15, 2017
2 parents 6d2646f + 956e4d4 commit 2c7c6e6
Show file tree
Hide file tree
Showing 35 changed files with 1,406 additions and 608 deletions.
4 changes: 4 additions & 0 deletions grunt/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module.exports = function test (grunt) {
grunt.registerTask('test', 'run jshint, qunit source w/ coverage, and validate HTML',
['jshint', 'connect:testServer', 'qunit:noMoment', 'qunit:globals', 'test-dist', 'htmllint']);

grunt.registerTask('unittest', 'Just unit test the dist without all the fluff',
['connect:testServer', 'test-dist']);


grunt.registerTask('prep-commonjs-test', 'run commonjs config build and browserify to prep for commonjs test',
['commonjs', 'browserify:commonjs']);

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ <h5>Choose Folder Location</h5>
</div>

<div class="picker-body well">
<ul class="tree" id="myPickerTree1" role="tree">
<ul class="tree" id="myPickerTree1" role="tree" aria-activedescendant="" aria-label="My Tree">
<li class="tree-branch hidden" data-template="treebranch" role="treeitem" aria-expanded="false">
<div class="tree-branch-header">
<button type="button" class="glyphicon icon-caret glyphicon-play"><span class="sr-only">Open</span>
Expand Down Expand Up @@ -2113,10 +2113,10 @@ <h5>Choose Folder Location</h5>
<h2>Tree</h2>
<div class="thin-box">
<!-- Utilizes Handlebars templates (see index.js) -->
<h3>folders selectable (please note structure of treebranch)</h3>
<h3 id="myTreeLabel">folders selectable (please note structure of treebranch)</h3>
<div id="myTreeWrapper"></div>

<h3>only items selectable (please note structure of treebranch)</h3>
<h3 id="myTree2Label">only items selectable (please note structure of treebranch)</h3>
<div id="myTree2Wrapper"></div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ define(function (require) {

var tree = require('hbs!fuelux_templates/tree');
var $myTreeWrapper = $('#myTreeWrapper');
$myTreeWrapper.html(tree({id: 'myTree', folderSelect: true}));
$myTreeWrapper.html(tree({id: 'myTree', labelledBy: 'myTreeLabel', folderSelect: true}));

var treeDataSource = function (parentData, callback) {
log('Opening branch data: ', parentData);
Expand Down Expand Up @@ -1099,7 +1099,7 @@ define(function (require) {
// initialize
function myTreeInit () {
var $myTree2Wrapper = $('#myTree2Wrapper');
$myTree2Wrapper.html(tree({id: 'myTree2'}));
$myTree2Wrapper.html(tree({id: 'myTree2', labelledBy: 'myTree2Label'}));

var callLimit = 200;
var callCount = 0;
Expand Down
Loading

0 comments on commit 2c7c6e6

Please sign in to comment.