Skip to content

Commit

Permalink
ui:bootstrap - backport accessibility update from twbs/bootstrap@b0372bb
Browse files Browse the repository at this point in the history
, closes #7599
  • Loading branch information
AdSchellevis committed Jul 8, 2024
1 parent 5d98f9f commit b0cab3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/opnsense/www/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,10 @@ if (typeof jQuery === 'undefined') {
Tooltip.prototype.fixTitle = function () {
var $e = this.$element
if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
if (!$e.attr('aria-label') && !$e.text().trim()) {
$e.attr('aria-label', $e.attr('title'));
}
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '');
}
}

Expand Down
Loading

0 comments on commit b0cab3b

Please sign in to comment.