1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-21 03:39:43 +00:00

Edittemplate toolbar improve accessibility (#8324)

* change aria-label from caption to hint to make it more descriptive

* add indentation
This commit is contained in:
Mario Pietsch 2024-09-10 18:14:29 +02:00 committed by GitHub
parent ffbef16152
commit 753a820945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View File

@ -4,11 +4,15 @@ caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
description: {{$:/language/Buttons/Cancel/Hint}} description: {{$:/language/Buttons/Cancel/Hint}}
\whitespace trim \whitespace trim
<$button actions=<<cancel-delete-tiddler-actions "cancel">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>> <$button actions=<<cancel-delete-tiddler-actions "cancel">>
<%if [<tv-config-toolbar-icons>match[yes]] %> tooltip={{$:/language/Buttons/Cancel/Hint}}
{{$:/core/images/cancel-button}} aria-label={{$:/language/Buttons/Cancel/Hint}}
<%endif%> class=<<tv-config-toolbar-class>>
<%if [<tv-config-toolbar-text>match[yes]] %> >
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span> <%if [<tv-config-toolbar-icons>match[yes]] %>
<%endif%> {{$:/core/images/cancel-button}}
<%endif%>
<%if [<tv-config-toolbar-text>match[yes]] %>
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>
<%endif%>
</$button> </$button>

View File

@ -8,7 +8,7 @@ description: {{$:/language/Buttons/Save/Hint}}
<$fieldmangler> <$fieldmangler>
<$button <$button
tooltip={{$:/language/Buttons/Save/Hint}} tooltip={{$:/language/Buttons/Save/Hint}}
aria-label={{$:/language/Buttons/Save/Caption}} aria-label={{$:/language/Buttons/Save/Hint}}
class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>>
> >
<<save-tiddler-actions>> <<save-tiddler-actions>>