Repository navigation
Activation du mode panel mobile de Be API Mega Menu Block (#97889) - #533
Merged
Merged
Conversation
New projects get mega menu sub menus as panels on mobile instead of the accordion. No effect without Be API Mega Menu Block 1.3.0 or later. Refs: https://support.beapi.fr/issues/97889 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwbSkwhT4o5PeFKUjLoxr8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VwbSkwhT4o5PeFKUjLoxr8
Declare the 1200px mobile-to-desktop-nav breakpoint in the beapi-mega-menu-panel theme support, so that the panel applies wherever the burger menu does instead of below 782px only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Contexte
Ticket : https://support.beapi.fr/issues/97889
PR plugin : https://github.com/BeAPI/beapi-mega-menu-block/pull/127
Be API Mega Menu Block 1.3.0 ajoute un mode panel mobile opt-in : le tap sur un niveau 1 ouvre un panel avec tous ses liens et un bouton « Retour » sticky, au lieu de l'accordéon. Les sites existants gardent l'accordéon ; seuls les thèmes qui déclarent le support passent en panel.
Changement
inc/Services/Theme.php:add_theme_support( 'beapi-mega-menu-panel', [ 'breakpoint' => 1200 ] ), pour que les nouveaux projets BFF aient le panel par défaut, sur toute la plage où le menu passe en burger : breakpointmobile-to-desktop-nav(1200 px) desrc/scss/01-abstract/_variables.scss, aussi exposé en--breakpoint-mobile-to-desktop-nav. Sans cette valeur, le plugin s'arrêterait à 782 px et le menu resterait en accordéon entre 782 et 1199 px. Si le breakpoint SCSS change, mettre à jour la valeur dansTheme.php.Sans effet tant que le plugin n'est pas en 1.3.0 (ou s'il n'est pas installé).
À vérifier
.header__menuest enposition: absolute,height: 100vh,overflow: autosous 1200 px, ce qui convient a priori ; à vérifier dans le navigateur, entre 782 et 1199 px compris.Generated by Claude Code
Note
Low Risk
Default mobile navigation UX for new projects only; gated on optional plugin 1.3.0+ with no auth or data changes.
Overview
New BFF projects now declare
beapi-mega-menu-paneltheme support withbreakpoint1200, so Be API Mega Menu Block 1.3.0+ opens mobile sub-menus as slide-in panels (with back control) instead of an accordion across the full burger-menu viewport—not only below WordPress’s default 782px cutoff.The value is kept in sync with the theme’s
mobile-to-desktop-navSCSS breakpoint via an inline comment inTheme.php. CHANGELOG 5.5.2 documents the behavior and dependency; no effect without the plugin or on versions before 1.3.0.Reviewed by Cursor Bugbot for commit ad9bedd. Bugbot is set up for automated code reviews on this repo. Configure here.