Skip to content

Commit e9ce1b7

Browse files
authored
Merge pull request #5107 from manics/toolbar-button-help-tooltip
Toolbar buttons tooltip: show help instead of label
2 parents 038b2c0 + 5d47947 commit e9ce1b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/static/notebook/js/toolbar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ define(['jquery','base/js/i18n'], function($, i18n) {
9494
}
9595
var button = $('<button/>')
9696
.addClass('btn btn-default')
97-
.attr("title", el.label||i18n.msg._(action.help))
97+
.attr("aria-label", el.label)
98+
.attr("title", i18n.msg._(action.help)||el.label)
9899
.append(
99100
$("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')
100101
);

0 commit comments

Comments
 (0)