mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +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:
parent
ffbef16152
commit
753a820945
@ -4,11 +4,15 @@ caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
|
||||
description: {{$:/language/Buttons/Cancel/Hint}}
|
||||
|
||||
\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>>>
|
||||
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
||||
{{$:/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 actions=<<cancel-delete-tiddler-actions "cancel">>
|
||||
tooltip={{$:/language/Buttons/Cancel/Hint}}
|
||||
aria-label={{$:/language/Buttons/Cancel/Hint}}
|
||||
class=<<tv-config-toolbar-class>>
|
||||
>
|
||||
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
||||
{{$:/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>
|
||||
|
@ -8,7 +8,7 @@ description: {{$:/language/Buttons/Save/Hint}}
|
||||
<$fieldmangler>
|
||||
<$button
|
||||
tooltip={{$:/language/Buttons/Save/Hint}}
|
||||
aria-label={{$:/language/Buttons/Save/Caption}}
|
||||
aria-label={{$:/language/Buttons/Save/Hint}}
|
||||
class=<<tv-config-toolbar-class>>
|
||||
>
|
||||
<<save-tiddler-actions>>
|
||||
|
Loading…
Reference in New Issue
Block a user