diff --git a/samples/Blazor.Toolkit.Samples.Client/Layout/MainLayout.razor b/samples/Blazor.Toolkit.Samples.Client/Layout/MainLayout.razor index de6f496f..558ae5e9 100644 --- a/samples/Blazor.Toolkit.Samples.Client/Layout/MainLayout.razor +++ b/samples/Blazor.Toolkit.Samples.Client/Layout/MainLayout.razor @@ -153,13 +153,16 @@ } @* Wide Layout: Apply full-width layout class for pages that opt out of the right TOC. *@ -
+
@* Cascade the TOC holder to @Body so the rendered page can publish its section list into the same instance the right sidebar reads from. *@ - + @if (!IsAccessibilityPage) + { + + } @Body @@ -171,7 +174,7 @@ RightToc pulls the holder via [CascadingParameter] and subscribes to its Changed event directly, so no wrapper component is needed. The same holder instance is shared with @Body above. *@ @* Wide Layout: Right panel is visible only on desktop and tablet, and hidden on wide-layout pages. *@ - @if (!IsMobile && !IsTablet && !IsWideLayoutPage) + @if (!IsMobile && !IsTablet && !IsWideLayoutPage && !IsAccessibilityPage) {