1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Add aria labels to palette switcher

Co-authored-by: Mario Pietsch <pmariojo@gmail.com>
This commit is contained in:
Jeremy Ruston 2024-11-11 15:52:55 +00:00 committed by GitHub
parent bad9517153
commit 46da1619af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ title: $:/snippets/paletteswitcher
<$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">
<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}}
<div class="tc-chooser-item-description">
''<$view field="name" format="text"/>''