Jake Vanderwerf
2026-09-04 c16a4d78d07e81ecdd2ff9b1b9090560ab2fe488
inc/ui/Navigation.php
@@ -42,10 +42,10 @@
      return $this->id;
   }
   /**
    * Add a menu item
    *
    * @param string|null $text
    * @param string|null $icon
    * @return MenuItem
    */
   public function addItem(?string $text = null, ?string $icon = null): MenuItem {
@@ -266,8 +266,7 @@
   private ?string $icon = null;
   private ?Navigation $submenu = null;
   private array $classes = [];
   private array $menuClasses = [];
   private array $attributes = [];
    private array $attributes = [];
   private bool $current = false;
   public function __construct(int $id) {
@@ -354,6 +353,7 @@
      $this->current = $current;
      if ($current) {
         $this->addClass('current');
         $this->attribute('aria-current', 'page');
      }
      return $this;
   }