Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thirty-fans-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes accessibility by adding scrollbar to right sidebar
1 change: 1 addition & 0 deletions packages/starlight/components/PageSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import TableOfContents from 'virtual:starlight/components/TableOfContents';
) * 0.25 /* MAGIC NUMBER 🥲 */
)
);
width: auto;
}
}
</style>
12 changes: 6 additions & 6 deletions packages/starlight/components/TwoColumnContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ import type { Props } from '../props';
}

.right-sidebar {
position: fixed;
top: 0;
position: sticky;
top: var(--sl-nav-height);
border-inline-start: 1px solid var(--sl-color-gray-6);
padding-top: var(--sl-nav-height);
width: 100%;
height: 100vh;
max-width: var(--sl-sidebar-width);
width: auto;
height: calc(100vh - var(--sl-nav-height));
overflow-y: auto;
scrollbar-width: none;
margin-right: var(--sl-sidebar-pad-x);
}

.main-pane {
Expand Down