mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
make additional buttons and links keyboard accessible
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user