Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 4.34 KB

File metadata and controls

77 lines (59 loc) · 4.34 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Prefix the change with one of these keywords:

  • Added: for new features.
  • Changed: for changes in existing functionality.
  • Deprecated: for soon-to-be removed features.
  • Removed: for now removed features.
  • Fixed: for any bug fixes.
  • Security: in case of vulnerabilities.

[Unreleased]

[1.1.0]

  • Added: Editor preview of the More button that reflects label, colors, and padding settings
  • Added: Transform to convert Priority Plus Navigation back to standard Navigation block
  • Added: Mobile collapse option to collapse all items into the toggle button at the mobile breakpoint (enabled by default)
  • Added: Button border controls (color, width, style) with per-side support in new "Priority Plus Button Border" panel
  • Added: Button border radius control with per-corner support
  • Changed: All items can now move into the dropdown when space is insufficient, removing the forced minimum of one visible item
  • Changed: Refactored constants into structured design tokens (src/tokens.js) and runtime config (src/config.js), replacing flat DEFAULT_* exports
  • Changed: Refactored CSS custom properties to use readable --ppn-dropdown-* aliases defined in a single @mixin dropdown-aliases in _variables.scss, shared by both frontend and editor stylesheets
  • Fixed: Navigation items and More button no longer wrap to a second line
  • Fixed: Initial page load now correctly calculates overflow and shows the More button
  • Fixed: Items correctly restore from mobile collapse when resizing to desktop
  • Fixed: More button chevron icon spacing — offset SVG internal padding so the arrow sits flush with the button's right edge (frontend and editor)
  • Fixed: Clicking the More button preview in the editor now selects the Priority Plus Navigation block instead of the parent block
  • Fixed: Resolved all 36 CSS lint errors (no-descending-specificity, no-duplicate-selectors) by restructuring SCSS selector order and grouping submenu styles per selector

[1.0.0]

Core

  • Added: Priority Plus Navigation as a block variation of the core Navigation block
  • Added: Automatic overflow detection using ResizeObserver to show/hide items based on available space
  • Added: Dynamic "More" dropdown that collects overflow navigation items
  • Added: Support for multiple Priority Plus Navigation instances on the same page
  • Added: Width caching and requestAnimationFrame for performant resize calculations

Editor Controls

  • Added: Customizable "More" button label
  • Added: Button color controls for text, background, and hover states
  • Added: Button padding controls with theme spacing size support
  • Added: Dropdown customizer modal with live preview
  • Added: Dropdown menu color controls (background, item text, hover states)
  • Added: Dropdown border controls with per-side support, radius, and box shadow
  • Added: Dropdown item padding and separator styling
  • Added: Submenu color controls (background, text, hover states)
  • Added: Submenu indentation control for nested menu levels
  • Added: Reset to defaults for all dropdown styles

Submenu & Accordion Support

  • Added: Accordion pattern for nested submenus within the dropdown
  • Added: Click mode (full button toggle) and arrow mode (separate toggle button) based on core submenu settings
  • Added: Keyboard navigation with Escape key to close dropdowns and accordions
  • Added: Full ARIA support for accordion expand/collapse states

Overlay Menu Compatibility

  • Added: Automatic detection of WordPress overlay/hamburger menu state
  • Added: Priority Plus disables when hamburger menu is active, re-enables on desktop
  • Changed: "Always" overlay option is prevented and auto-converted to "Mobile" with editor notice

Theme Integration

  • Added: theme.json support via settings.custom.priorityPlusNavigation.dropdown path
  • Added: CSS custom properties for all styling options
  • Added: WordPress preset value support (spacing sizes, colors)
  • Added: Block-level overrides that take precedence over theme.json defaults