diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index bfe9b6cb3b7..7f149eab109 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -75,19 +75,21 @@ tags: $:/tags/Macro <$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix] }}}> <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
  • >> - <$link to={{{ [get[target]else] }}}> +
    <$reveal type="nomatch" stateTitle=<> text="open"> - <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[expand ]] }}}> <$transclude tiddler=<> /> <$reveal type="match" stateTitle=<> text="open"> - <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[collapse ]] }}}> <$transclude tiddler=<> /> - <> - + <$link to={{{ [get[target]else] }}}> + <> + +
    <$reveal type="match" stateTitle=<> text="open"> <$macrocall $name="toc-expandable" tag=<> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> @@ -103,13 +105,13 @@ tags: $:/tags/Macro <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
  • >> <$reveal type="nomatch" stateTitle=<> text="open"> - <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[expand ]] }}}> <$transclude tiddler=<> /> <> <$reveal type="match" stateTitle=<> text="open"> - <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[collapse ]] }}}> <$transclude tiddler=<> /> <> @@ -146,21 +148,23 @@ tags: $:/tags/Macro <$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix] }}}> <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item" >
  • >> - <$link to={{{ [get[target]else] }}}> - <$list filter="[all[current]tagging[]$sort$] -[subfilter<__exclude__>] +[limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}"> +
    + <$list filter="[all[current]tagging[]$sort$] -[subfilter<__exclude__>] +[limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible' tabindex='-1'>{{$:/core/images/blank}}"> <$reveal type="nomatch" stateTitle=<> text="open"> - <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[expand ]] }}}> <$transclude tiddler=<> /> <$reveal type="match" stateTitle=<> text="open"> - <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[collapse ]] }}}> <$transclude tiddler=<> /> - <> - + <$link to={{{ [get[target]else] }}}> + <> + +
    <$reveal type="match" stateTitle=<> text="open"> <$macrocall $name="toc-selective-expandable" tag=<> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> @@ -174,15 +178,15 @@ tags: $:/tags/Macro <$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix] }}}> <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
  • >> - <$list filter="[all[current]tagging[]$sort$] -[subfilter<__exclude__>] +[limit[1]]" variable="ignore" emptyMessage="""<$button class="tc-btn-invisible">{{$:/core/images/blank}}<>"""> + <$list filter="[all[current]tagging[]$sort$] -[subfilter<__exclude__>] +[limit[1]]" variable="ignore" emptyMessage="""<$button class="tc-btn-invisible" tabindex="-1">{{$:/core/images/blank}}<>"""> <$reveal type="nomatch" stateTitle=<> text="open"> - <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="open" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[expand ]] }}}> <$transclude tiddler=<> /> <> <$reveal type="match" stateTitle=<> text="open"> - <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> + <$button setTitle=<> setTo="close" class="tc-btn-invisible tc-popup-keep" aria-label={{{ [addprefix[collapse ]] }}}> <$transclude tiddler=<> /> <> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index b1d591fcdfe..47fb9de5580 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -3005,27 +3005,32 @@ input.tc-palette-manager-colour-input { border-bottom: 1px solid <>; } -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a, -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a { - display: block; +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > .tc-toc-item-row, +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > .tc-toc-item-row { + display: flex; + align-items: center; padding: 0.12em 1em 0.12em 0.25em; } -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a { +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > .tc-toc-item-row { border-top: 1px solid <>; border-left: 1px solid <>; border-bottom: 1px solid <>; } -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover { - text-decoration: none; +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > .tc-toc-item-row:hover { border-top: 1px solid <>; border-left: 1px solid <>; border-bottom: 1px solid <>; background: <>; } -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a { +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item a:hover, +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected a:hover { + text-decoration: none; +} + +.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > .tc-toc-item-row { border-top: 1px solid <>; border-left: 1px solid <>; border-bottom: 1px solid <>; @@ -3033,10 +3038,6 @@ input.tc-palette-manager-colour-input { margin-right: -1px; } -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a:hover { - text-decoration: none; -} - .tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content { display: inline-block; vertical-align: top;