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

Issue #3421251] by joshua1234511, alex.skrypnyk: Navigation sidebar not expanding sub-links automatically #1226

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

joshua-salsadigital
Copy link
Collaborator

@joshua-salsadigital joshua-salsadigital commented Mar 12, 2024

https://www.drupal.org/project/civictheme/issues/3421251

Checklist before requesting a review

  • I have formatted the subject to include ticket number as [CS-123] Verb in past tense with dot at the end.
  • I have added a link to the issue tracker
  • I have provided information in Changed section about WHY something was done if this was not a normal implementation
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have run new and existing relevant tests locally with my changes, and they passed
  • I have provided screenshots, where applicable

Changed

  1. Added a flag for Expand all menu links, passed view block config.

Screenshots

https://nimb.ws/UJdh0Wq

screencast-monorepo-drupal.docker.amazee.io-2024.03.12-18_31_00.webm

@joshua-salsadigital joshua-salsadigital added the State: Needs review Pull requests needs a review from assigned developers label Mar 12, 2024
@joshua-salsadigital joshua-salsadigital self-assigned this Mar 12, 2024
@@ -31,5 +29,8 @@ function civictheme_preprocess_block__menu_block__civictheme_primary_navigation(

if (str_starts_with($region, 'sidebar')) {
$variables['in_sidebar'] = TRUE;
$expand_all_items = $variables['configuration']['expand_all_items'] ?? FALSE;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added override only for sidebar regions, (Header navigation wont be effected - they will still follow individual menu item settings)

@AlexSkrypnyk AlexSkrypnyk changed the title Issue #3421251] by joshua1234511: Navigation sidebar not expanding sub-links automatically Issue #3421251] by joshua1234511, alex.skrypnyk: Navigation sidebar not expanding sub-links automatically Mar 12, 2024
@AlexSkrypnyk AlexSkrypnyk merged commit 2c5f035 into develop Mar 12, 2024
12 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/3421251-fix-side-navigation branch March 12, 2024 16:36
AlexSkrypnyk added a commit that referenced this pull request Mar 12, 2024
…t expanding sub-links automatically (#1226)

Co-authored-by: Joshua Fernandes <“[email protected]”>
Co-authored-by: Alex Skrypnyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Needs review Pull requests needs a review from assigned developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants