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

UX: Sections not collapsable in "header dropdown" navigation menu #21604

Merged

Conversation

tgxworld
Copy link
Contributor

What is the problem?

This is a follow up to 4cca7de. In the
commit, CSS was used to disable the collapsing of sections in the header
dropdown navigation menu when the navigation_menu site setting is set
to header dropdown. However, using CSS is not the correct approach as
the underlying code is still marking the section as collapsable which
means that the sections will still be displayed as collapsed with no way
to "uncollapse" if the local store has already marked the section as
collapsed.

What is the fix?

This commit removes the usage of CSS to hide the collapsabe button and
instead correctly marks the section as not collapsable in the code.

What is the problem?

This is a follow up to 4cca7de. In the
commit, CSS was used to disable the collapsing of sections in the header
dropdown navigation menu when the `navigation_menu` site setting is set
to `header dropdown`. However, using CSS is not the correct approach as
the underlying code is still marking the section as collapsable which
means that the sections will still be displayed as collapsed with no way
to "uncollapse" if the local store has already marked the section as
collapsed.

What is the fix?

This commit removes the usage of CSS to hide the collapsabe button and
instead correctly marks the section as not collapsable in the code.
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/5

Copy link
Contributor

@jjaffeux jjaffeux left a comment

Choose a reason for hiding this comment

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

👍

@tgxworld tgxworld merged commit c991b8f into discourse:main May 17, 2023
12 of 13 checks passed
@tgxworld tgxworld deleted the dropdown_navigation_menu_not_collapsable branch May 17, 2023 06:28
@tgxworld
Copy link
Contributor Author

Thank you for the review @jjaffeux

martin-brennan pushed a commit that referenced this pull request May 22, 2023
…1604)

What is the problem?

This is a follow up to 4cca7de. In the
commit, CSS was used to disable the collapsing of sections in the header
dropdown navigation menu when the `navigation_menu` site setting is set
to `header dropdown`. However, using CSS is not the correct approach as
the underlying code is still marking the section as collapsable which
means that the sections will still be displayed as collapsed with no way
to "uncollapse" if the local store has already marked the section as
collapsed.

What is the fix?

This commit removes the usage of CSS to hide the collapsabe button and
instead correctly marks the section as not collapsable in the code.
enduvar pushed a commit to ForgottenWorld/discourse that referenced this pull request Sep 8, 2023
…scourse#21604)

What is the problem?

This is a follow up to 4cca7de. In the
commit, CSS was used to disable the collapsing of sections in the header
dropdown navigation menu when the `navigation_menu` site setting is set
to `header dropdown`. However, using CSS is not the correct approach as
the underlying code is still marking the section as collapsable which
means that the sections will still be displayed as collapsed with no way
to "uncollapse" if the local store has already marked the section as
collapsed.

What is the fix?

This commit removes the usage of CSS to hide the collapsabe button and
instead correctly marks the section as not collapsable in the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants