make additional buttons and links keyboard accessible

This commit is contained in:
Albin Larsson
2019-07-31 08:24:26 +02:00
parent d5da5a601c
commit cd5cd81ba5
15 changed files with 1 additions and 19 deletions
-1
View File
@@ -113,7 +113,6 @@ export function uiToolOldDrawModes(context) {
// enter
var buttonsEnter = buttons.enter()
.append('button')
.attr('tabindex', -1)
.attr('class', function(d) { return d.id + ' add-button bar-button'; })
.on('click.mode-buttons', function(d) {
if (!enabled(d)) return;
+1 -1
View File
@@ -84,7 +84,6 @@ export function uiToolSave(context) {
button = selection
.append('button')
.attr('class', 'save disabled bar-button')
.attr('tabindex', -1)
.on('click', save)
.call(tooltipBehavior);
@@ -94,6 +93,7 @@ export function uiToolSave(context) {
button
.append('span')
.attr('class', 'count')
.attr('aria-hidden', 'true')
.text('0');
updateCount();
-1
View File
@@ -15,7 +15,6 @@ export function uiToolSidebarToggle(context) {
selection
.append('button')
.attr('class', 'bar-button')
.attr('tabindex', -1)
.on('click', function() {
context.ui().sidebar.toggle();
})