Skip to content

Restore sidebar section toggle layout under Quarto 1.11 - #196

Merged
atheriel merged 1 commit into
mainfrom
aj-fix-sidebar-quarto-1-11
Oct 28, 2026
Merged

atheriel merged 1 commit into
mainfrom
aj-fix-sidebar-quarto-1-11

Conversation

@atheriel

Copy link
Copy Markdown
Collaborator

Quarto 1.11 (currently in prerelease) renders sidebar section toggles as <button> elements instead of <a> elements for improve accessibility (see quarto-dev/quarto-cli#14826). Previously this theme's sidebar rules only targeted links, which broke sidebar styling with this upcoming Quarto version.

This commit extends the font size rule to toggle buttons and adds rules that keep chevrons at the right edge (and on the first line). The new selectors only match <button> toggles, so earlier Quarto versions are unaffected.

We also add sections with their own page and with wrapping labels to the example site so this layout can be checked visually.

Validated locally against Quarto 1.11.7.

Fixes #195.

Quarto 1.11 (currently in prerelease) renders sidebar section toggles as
`<button>` elements instead of `<a>` elements for improve
accessibility (see quarto-dev/quarto-cli#14826). Previously this theme's
sidebar rules only targeted links, which broke sidebar styling with this
upcoming Quarto version.

This commit extends the font size rule to toggle buttons and adds rules
that keep chevrons at the right edge (and on the first line). The new
selectors only match `<button>` toggles, so earlier Quarto versions are
unaffected.

We also add sections with their own page and with wrapping labels to the
example site so this layout can be checked visually.

Validated locally against Quarto 1.11.7.

Fixes #195.

Signed-off-by: Aaron Jacobs <[email protected]>
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-10-28 19:47 UTC

@sarahsdao sarahsdao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the example site locally and with the PR preview; this looks good! Thanks for fixing :)

@atheriel
atheriel merged commit 6b73d40 into main Oct 28, 2026
2 checks passed
@atheriel
atheriel deleted the aj-fix-sidebar-quarto-1-11 branch October 28, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar section toggles are smaller and misaligned with Quarto 1.11

2 participants