Skip to content

Commit

Permalink
Merge pull request #5107 from manics/toolbar-button-help-tooltip
Browse files Browse the repository at this point in the history
Toolbar buttons tooltip: show help instead of label
  • Loading branch information
afshin authored May 17, 2020
2 parents 038b2c0 + 5d47947 commit e9ce1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/static/notebook/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ define(['jquery','base/js/i18n'], function($, i18n) {
}
var button = $('<button/>')
.addClass('btn btn-default')
.attr("title", el.label||i18n.msg._(action.help))
.attr("aria-label", el.label)
.attr("title", i18n.msg._(action.help)||el.label)
.append(
$("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')
);
Expand Down

0 comments on commit e9ce1b7

Please sign in to comment.