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

Remove sidebar menu style workarounds #58

Open
3 tasks
alisonjo315 opened this issue Nov 11, 2022 · 2 comments
Open
3 tasks

Remove sidebar menu style workarounds #58

alisonjo315 opened this issue Nov 11, 2022 · 2 comments
Assignees
Labels
discussion task A task! A task!

Comments

@alisonjo315
Copy link
Collaborator

alisonjo315 commented Nov 11, 2022

In olden tymes, the Drupal 8 version of menu_block was missing some critical functionality for making sidebar/section navigations/menus show and hide items properly.

We have styles in cwd_base to deal with these limitations. Recently, these workarounds actually caused some trouble (LASSP faculty labs), and we had to override the cwd_base workaround styles, in order to show an entire menu tree in the sidebar.

Since then, menu_block has become good. Let's remove the workarounds!

Notes:

To do:

  • Remove workaround styles (drupal.scss, line 344-350):
/* section navigation menu */
.secondary-navigation.drupal-section-navigation .menu-item {
    display: none;
}
.secondary .menu-block-title + .secondary-navigation.drupal-section-navigation .menu-item,
.secondary-navigation.drupal-section-navigation .menu-item--active-trail,
.secondary-navigation.drupal-section-navigation .menu-item--active-trail .menu-item {
    display: block;
}
  • Check and if necessary update the sidebar menu block configuration on CD Demo
    • Menu block machine name: cwd_project_mainnavigation
    • If changes are needed, create a companion issue over there.
  • Write instructions for release notes -- i.e.
    • If you choose to update to this version of cwd_base and your sidebar menu relies on cwd_base to properly hide/show menu items...
    • Here's how to update your section nav menu block settings...
    • Or here are a few lines of styles to add to your site theme... (i.e. the style block above that we're removing)
@ama39
Copy link
Collaborator

ama39 commented Aug 4, 2023

Reviewed in DUX Meeting:

@dc774 will look at making this change on a branch and submitting a pull request. Due to the file being updated, the CSS change should be done on cwd_framework.

@alisonjo315
Copy link
Collaborator Author

(same comment as on #51)

Thanks for reviewing AND assigning! -- in theory, you could move this issue to "team review: done" because it's ready for the next step, which doesn't require team discussion -- it can always be added back to a review queue if there's another point of discussion. (BUT, y'all can manage your queue however you wish.)

@ama39 ama39 self-assigned this Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion task A task! A task!
Projects
None yet
Development

No branches or pull requests

3 participants