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

When a middleware page is loaded, the Documentation section expands #26

Open
ikbensiep opened this issue Sep 20, 2022 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ikbensiep
Copy link
Contributor

In the screenshot below, taken right after loading the page, the Documentation section should be collapsed by default.

When a page from the Documentation section is loaded, the correct <details> are expanded or collapsed.

image

@ikbensiep ikbensiep added the bug Something isn't working label Sep 20, 2022
@ikbensiep ikbensiep self-assigned this Sep 20, 2022
@evert
Copy link
Member

evert commented Sep 20, 2022

This is probably happening because I messed with the URI prefix for the first section. Would consider this 'nice to have' tho

@evert
Copy link
Member

evert commented Sep 20, 2022

But if this is solvable with CSS, I'd probably do this with a parent selector. (figure out which page is open (marked with red right now), and default the section to open)

@ikbensiep
Copy link
Contributor Author

I think it's easier to do this with JS than CSS tbh.
But, looking at the template code, I don't understand why the logic doesn't work in the current setup even taking your changes into account. I'll take another look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants