Skip to content

Conversation

@jasperf
Copy link
Contributor

@jasperf jasperf commented Jan 21, 2026

This release (version 2.5.7) addresses critical mobile layout issues in the mega menu block by implementing proper full-width positioning and standardizing the close button placement. The changes resolve overflow problems on mobile devices where the mega menu content was constrained by parent container padding, preventing the intended edge-to-edge display. The fix applies viewport-based positioning using CSS custom properties and removes conflicting horizontal padding from the services showcase pattern, ensuring consistent full-width behavior across all mega menu layouts and improving mobile user experience.

Mobile Layout Fixes:

  • Implemented proper full-width positioning for mega menu content on mobile using calc(100vw - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right)) to account for theme root padding while achieving true edge-to-edge display
  • Removed horizontal padding from the services showcase pattern that was preventing full-width rendering and causing overflow issues on mobile devices

Close Button Positioning:

  • Standardized close button positioning to use fixed pixel values (top: 12px, right: 12px) instead of relative positioning to match Elayne theme spacing conventions
  • Ensures consistent close button placement across different viewport sizes and mega menu content variations

Version Management:

  • Updated version to 2.5.7 across elayne-blocks.php, CHANGELOG.md, and readme.txt with detailed documentation of mobile overflow fixes
  • Modified 7 files total including compiled CSS outputs (style-index.css and style-index-rtl.css) to ensure RTL language support for the positioning changes

Files Changed:

@github-actions
Copy link

github-actions bot commented Jan 21, 2026

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

Updated mega menu mobile close button to use WordPress spacing presets
(--wp--preset--spacing--small) instead of hardcoded pixels, matching
the Elayne theme's navigation close button implementation.
Removed left/right padding from outer container to allow full-width
display on mobile devices. The grid layout now properly fills the
available space without excessive side margins.
Changed close button positioning to fixed 20px values instead of theme
spacing variables to ensure consistent positioning across themes and
better alignment with navigation close button.
@jasperf jasperf merged commit 004b878 into main Jan 21, 2026
2 checks passed
@jasperf jasperf deleted the fix/mega-menu-mobile-scroll branch January 21, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants