Situation:
When a toggle is switched off, then none of its descendants are rendered (except when they have been visible before -- then they should be disappearing)
Intended outcome:
A Toggle { onlyInCurrentRegion = True } should hide exactly all descendants in its current region.
Use case:
A collapsible TOC should not affect the visibility of the pages linked from there.
Discussion:
As of now, this would require some state awareness in Ui or region awareness in Html.
We can implement the use case by making the GoTo twice per each page: once in a global menu without labels (think "Jump-to" for assistive tech) plus once in the Toc. The actual page content would then not be decendant of the TOC.
Situation: When a toggle is switched off, then none of its descendants are rendered (except when they have been visible before -- then they should be disappearing)
Intended outcome: A Toggle { onlyInCurrentRegion = True } should hide exactly all descendants in its current region.
Use case: A collapsible TOC should not affect the visibility of the pages linked from there.
Discussion: As of now, this would require some state awareness in
Ui
or region awareness inHtml
. We can implement the use case by making theGoTo
twice per each page: once in a global menu without labels (think "Jump-to" for assistive tech) plus once in the Toc. The actual page content would then not be decendant of the TOC.Compare:
With local occlusion
With global occlusion, and
atLocation
With a "Generator" style
page
instead ofgoTo
:Same, plus list comprehension: