mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 14:55:17 +00:00
Add aria labels to palette switcher
Co-authored-by: Mario Pietsch <pmariojo@gmail.com>
This commit is contained in:
parent
bad9517153
commit
46da1619af
@ -10,7 +10,7 @@ title: $:/snippets/paletteswitcher
|
|||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
|
||||||
<$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
<$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||||
<div class=<<cls>>>
|
<div class=<<cls>>>
|
||||||
<$link to={{!!title}}>
|
<$link to={{!!title}} aria-label=`${[[$:/language/ControlPanel/Palette/Caption]get[text]]}$ - ${[all[current]get[name]]}$. ${[all[current]get[description]]}$`>
|
||||||
{{||$:/snippets/currpalettepreview}}
|
{{||$:/snippets/currpalettepreview}}
|
||||||
<div class="tc-chooser-item-description">
|
<div class="tc-chooser-item-description">
|
||||||
''<$view field="name" format="text"/>''
|
''<$view field="name" format="text"/>''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user