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.
This update introduces a comprehensive navigation enhancement system that adds mobile-responsive behavior and improved chevron positioning to the WordPress core navigation block through vanilla JavaScript and custom CSS. The implementation includes a new frontend script that handles touch interactions and submenu toggles, complemented by dedicated CSS for chevron styling and responsive behavior. This update also increments the theme version to 1.1.1 and updates several patterns to use the new
navigations-frontend.jsscript for consistent navigation behavior across the demo site.Navigation Enhancement System:
assets/js/navigation-frontend.js(approximately 350+ lines) implementing mobile submenu toggle functionality with click-outside-to-close behavior, preventing unwanted navigation when toggling submenus, and smooth chevron animationsassets/styles/core-navigation.csswith targeted styles for improved chevron positioning (inline alignment, proper spacing, rotation animations) and mobile-responsive navigation behaviorfunctions.phpto enqueue the new navigation script and stylesheet, ensuring they load on all pages where the navigation block is presentPattern Updates:
patterns/header-standard.phpandpatterns/footer-simple.phpto utilize the new navigation enhancement system with properly configured submenu structurespatterns/stats-showcase.phpwith improved responsive grid layout and spacing adjustments for better mobile displayVersion and Documentation:
style.cssandreadme.txtCHANGELOG.mdwith detailed documentation of the navigation enhancement features, pattern updates, and architectural improvements for the beta.2 releaseFiles Changed:
CHANGELOG.md(Modified)functions.php(Modified)patterns/footer-simple.php(Modified)patterns/header-standard.php(Modified)patterns/stats-showcase.php(Modified)readme.txt(Modified)style.css(Modified)assets/js/navigation-frontend.js(Added)assets/styles/core-navigation.css(Added)