A11Y: history modal mode toggles need aria-labels (#20125)

This commit is contained in:
Kris 2023-02-02 09:35:10 -05:00 committed by GitHub
parent a32e6b5771
commit 3cb8be706c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@
class={{this.inlineClass}}
{{on "click" this.displayInline}}
title={{i18n "post.revisions.displays.inline.title"}}
aria-label={{i18n "post.revisions.displays.inline.title"}}
>
{{d-icon "far-square"}}
{{i18n "post.revisions.displays.inline.button"}}
@ -69,6 +70,7 @@
class={{this.sideBySideClass}}
{{on "click" this.displaySideBySide}}
title={{i18n "post.revisions.displays.side_by_side.title"}}
aria-label={{i18n "post.revisions.displays.side_by_side.title"}}
>
{{d-icon "columns"}}
{{i18n "post.revisions.displays.side_by_side.button"}}
@ -82,6 +84,9 @@
title={{i18n
"post.revisions.displays.side_by_side_markdown.title"
}}
aria-label={{i18n
"post.revisions.displays.side_by_side_markdown.title"
}}
>
{{d-icon "columns"}}
{{i18n "post.revisions.displays.side_by_side_markdown.button"}}