Fix dropdown menus hidden by FOUC CSS specificity regression (#835) - #836
Merged
jjroelofs merged 1 commit intoJul 29, 2026
Merged
Conversation
jjroelofs
deleted the
Drale1/8.x/#835-Dropdown-menus-do-not-open-after-update-to-8.1.3
branch
July 29, 2026 05:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issues
#835
https://www.drupal.org/project/dxpr_theme/issues/3610960
Solution
The 8.1.3 FOUC rule
.dxpr-theme-header ul.dropdown-menu { display: none; }has higher specificity than Bootstrap’s .dropdown-menu.show, so open dropdowns stay hidden.Updated the inline FOUC style in
templates/html.html.twigto.dxpr-theme-header ul.dropdown-menu:not(.show) { display: none; }, so closed menus still avoid FOUC while open menus can display.Checklist