mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
A11Y: Don't output aria label identical to title (#14586)
This commit is contained in:
parent
11bd3438c4
commit
a3fde50b62
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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)
|
||||
}}
|
||||
|
@ -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"
|
||||
|
@ -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"))
|
||||
}}
|
||||
|
@ -69,7 +69,7 @@
|
||||
tagName=""
|
||||
}}
|
||||
{{else}}
|
||||
{{private-message-glyph shouldShow=model.isPrivateMessage tagName=""}}
|
||||
{{private-message-glyph shouldShow=model.isPrivateMessage tagName=""}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user