diff --git a/src/Breadcrumbs.php b/src/Breadcrumbs.php index cd1c5ed..d58270c 100644 --- a/src/Breadcrumbs.php +++ b/src/Breadcrumbs.php @@ -33,7 +33,7 @@ class Breadcrumbs extends Widget private array $homeItem = []; private bool $withoutHomeItem = false; private string $itemTemplate = "
  • {icon}{link}
  • \n"; - private string $activeItemTemplate = "
  • {icon}{label}
  • \n"; + private string $activeItemTemplate = "
  • {icon}{label}
  • \n"; private array $items = []; private array $options = []; private array $itemsOptions = []; diff --git a/tests/BreadcrumbsTest.php b/tests/BreadcrumbsTest.php index b8602ee..5b74347 100644 --- a/tests/BreadcrumbsTest.php +++ b/tests/BreadcrumbsTest.php @@ -128,7 +128,7 @@ public function testBreadcrumbsItemTemplateActive(): void $html = Breadcrumbs::widget() ->homeItem(['label' => 'Index', 'url' => '/index']) - ->activeItemTemplate("
  • {label}
  • \n") + ->activeItemTemplate("
  • {label}
  • \n") ->items([['label' => 'About', 'url' => '/about']]) ->render(); $expected = <<<'HTML' @@ -157,7 +157,7 @@ public function testBreadcrumbsLinksEmptyUrl(): void HTML;