mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 19:39:57 +00:00
0671e59fed
Reasons: - can show or hide the button text with CSS (assuming tv-config-toolbar-text is yes). - can have different looking buttons in the page controls versus the view toolbar, etc - more flexibility styling the button appearance, for example you can change the text size compared to the icon size - button appearance is more themeable
13 lines
605 B
Plaintext
13 lines
605 B
Plaintext
title: $:/core/ui/Buttons/close
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}
|
|
description: {{$:/language/Buttons/Close/Hint}}
|
|
|
|
<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/close-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Close/Caption}}/></span>
|
|
</$list>
|
|
</$button> |