Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

primary toggle sidebar no longer working in 0.15.3 #1875

Closed
parmentelat opened this issue Jun 12, 2024 · 2 comments
Closed

primary toggle sidebar no longer working in 0.15.3 #1875

parmentelat opened this issue Jun 12, 2024 · 2 comments

Comments

@parmentelat
Copy link

parmentelat commented Jun 12, 2024

as mentioned here
jupyter-book/jupyter-book#2160
and then here
executablebooks/sphinx-book-theme#836

there is a regression in 0.15.3 about the hamburger-button known as "primary sidebar toggle", that no longer works as expected; clicking the button does not slide the left-hand-side toc pane away, as it used to do

I have spent some time trying to investigate the root cause of this problem, here are some findings that I hope might turn out helpful

in 0.15.2

as I understand it, the logic is that the button (.primary-toggle) has a for="__primary" attribute,

image

which binds the button to a hidden input field here

image

in 0.15.3

however in the broken release, the for attribute is still present

image

but the linked input seems to have been renamed into pst-primary-sidebar-checkbox

image

which breaks the link between both elements


given the apparent size of the differences between both versions, I am not comfortable with pursuing this investigation further without insights, but hopefully this can trigger ideas on how best to fix it ?

@agoose77
Copy link
Contributor

This is a breakage caused by pydata-sphinx-theme, but we (sphinx-book-theme) will need to make the changes to fix it :) I've opened a PR there (executablebooks/sphinx-book-theme#841)

@parmentelat
Copy link
Author

oh, I see; I'd better close this one then :)

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

No branches or pull requests

2 participants