A11Y: Don't output aria label identical to title (#14586)

This commit is contained in:
Penar Musaraj 2021-10-13 11:19:38 -04:00 committed by GitHub
parent 11bd3438c4
commit a3fde50b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 9 deletions

View File

@ -7,7 +7,6 @@
icon="bars"
action=toggleToolbar
title=toggleToolbarTitle
ariaLabel=toggleToolbarTitle
preventFocus=true
tabindex=-1
}}
@ -18,7 +17,6 @@
icon=toggleIcon
action=toggleComposer
title=toggleTitle
ariaLabel=toggleTitle
tabindex=-1
}}
@ -28,7 +26,6 @@
icon=fullscreenIcon
action=toggleFullscreen
title=fullscreenTitle
ariaLabel=fullscreenTitle
tabindex=-1
}}
{{/unless}}

View File

@ -3,7 +3,12 @@
<div class="modal-inner-container">
<div class="modal-header {{headerClass}}">
{{#if dismissable}}
{{d-button icon="times" action=(route-action "closeModal" "initiatedByCloseButton") class="btn-flat modal-close close" title="modal.close" ariaLabel="modal.close"}}
{{d-button
icon="times"
action=(route-action "closeModal" "initiatedByCloseButton")
class="btn-flat modal-close close"
title="modal.close"
}}
{{/if}}
{{#if title}}

View File

@ -2,6 +2,5 @@
action=(action "share" source)
class=(concat "btn-default share-" source.id)
translatedTitle=source.title
translatedAriaLabel=source.title
icon=(if source.icon source.icon source.htmlIcon)
}}

View File

@ -6,7 +6,6 @@
<div class="topic-timer-modify">
{{#if showEdit}}
{{~d-button
ariaLabel="post.controls.edit_timer"
title="post.controls.edit_timer"
icon="pencil-alt"
class="btn topic-timer-edit no-text"
@ -15,7 +14,6 @@
{{/if}}
{{#if showTrashCan}}
{{~d-button
ariaLabel="post.controls.remove_timer"
title="post.controls.remove_timer"
icon="trash-alt"
class="btn topic-timer-remove no-text"

View File

@ -222,7 +222,6 @@
{{d-button
action=(action "togglePreview")
translatedTitle=toggleText
translatedAriaLabel=toggleText
icon="angle-double-left"
class=(concat "btn-flat btn-mini-toggle toggle-preview " (unless showPreview "active"))
}}

View File

@ -69,7 +69,7 @@
tagName=""
}}
{{else}}
{{private-message-glyph shouldShow=model.isPrivateMessage tagName=""}}
{{private-message-glyph shouldShow=model.isPrivateMessage tagName=""}}
{{/if}}
{{/unless}}