- Affected version
- 2.2.15
In the
The
Adding an
Perhaps the XF.Tooltip should automatically push an
public:notice_macros:notice
macro there is this:
Code:
<a href="{{ link('account/dismiss-notice', null, {'notice_id': $notice.notice_id}) }}" class="notice-dismiss js-noticeDismiss" data-xf-init="tooltip" title="{{ phrase('dismiss_notice')|for_attr }}"></a>
title
attribute is removed so screen readers don't see it.Adding an
aria-label
should fix that;
Code:
<a href="{{ link('account/dismiss-notice', null, {'notice_id': $notice.notice_id}) }}" class="notice-dismiss js-noticeDismiss" aria-label="{{ phrase('dismiss_notice')|for_attr }}" data-xf-init="tooltip" title="{{ phrase('dismiss_notice')|for_attr }}"></a>
Perhaps the XF.Tooltip should automatically push an
aria-label
for elements without any children but with a title?