Skip to content

Remove sidebar menu style workarounds #58

@alisonjo315

Description

@alisonjo315

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions