Fix mobile navigation submenu collapse on Bootstrap 4#27
Merged
Conversation
Co-authored-by: frasermolyneux <34033625+frasermolyneux@users.noreply.github.com>
Co-authored-by: frasermolyneux <34033625+frasermolyneux@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix side navigation menu issue on small devices
Fix mobile navigation submenu collapse on Bootstrap 4
Jan 20, 2026
There was a problem hiding this comment.
Pull request overview
This pull request attempts to fix a mobile navigation submenu collapse issue where submenus briefly flash then disappear after tapping. The fix targets two CSS incompatibilities: metisMenu library's lack of Bootstrap 4+ support for the .collapse.show class, and disabled CSS transitions that break Bootstrap's collapse height calculation.
Changes:
- Added
.collapse.showclass support to metisMenu CSS files for Bootstrap 4+ compatibility - Removed
transition: noneoverride that was preventing proper collapse animation
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/XtremeIdiots.Portal.Web/wwwroot/lib/metisMenu/dist/metisMenu.css | Added .collapse.show selector alongside .collapse.in for Bootstrap 4+ compatibility |
| src/XtremeIdiots.Portal.Web/wwwroot/lib/metisMenu/dist/metisMenu.min.css | Minified version of the same Bootstrap 4+ compatibility change |
| src/XtremeIdiots.Portal.Web/wwwroot/css/responsive-overrides.css | Removed mobile-specific transition: none override that was breaking collapse animation |
|
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.



Mobile menu submenus briefly flash then disappear after tapping, leaving empty boxes.
Root Cause
Two CSS incompatibilities:
.collapse.inclass, not Bootstrap 4's.collapse.showtransition: noneprevents Bootstrap's collapse component from computing element height, causing content to remain at0pxChanges
metisMenu Bootstrap 4 compatibility
Removed transition override
Files Changed
metisMenu.css/metisMenu.min.css- Added.showclass supportresponsive-overrides.css- Removed mobile transition overrideThe fix maintains backward compatibility with Bootstrap 3 while enabling proper Bootstrap 4 collapse behavior.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.