From 124848377d7c7a03bde51f70c2aca4c111fcb10b Mon Sep 17 00:00:00 2001 From: PowerGamer1 Date: Sun, 24 Jul 2016 18:08:40 +0300 Subject: [PATCH] Fixes #143: Fixed `yii\bootstrap\Nav` to use tags according to bootstrap docs --- CHANGELOG.md | 1 + Nav.php | 4 ++-- tests/NavTest.php | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4919689..d17688f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Yii Framework 2 bootstrap extension Change Log - Bug #130: Fixed `yii\bootstrap\Collapse` to use pure numerical value on `content` property (meysampg) - Bug #137: Remove `role="navbar"` from `yii\bootstrap\NavBar` according to new aria specification (tino415) - Enh #113: Allow URLs instead of content for Tab Widget Dropdown items (Okeanos) +- Bug #143: Fixed `yii\bootstrap\Nav` to use tags according to bootstrap docs (PowerGamer1) 2.0.6 March 17, 2016 -------------------- diff --git a/Nav.php b/Nav.php index 3598b9d..89a89df 100644 --- a/Nav.php +++ b/Nav.php @@ -102,7 +102,7 @@ class Nav extends Widget /** * @var string this property allows you to customize the HTML which is used to generate the drop down caret symbol, * which is displayed next to the button text to indicate the drop down functionality. - * Defaults to `null` which means `` will be used. To disable the caret, set this property to be an empty string. + * Defaults to `null` which means `` will be used. To disable the caret, set this property to be an empty string. */ public $dropDownCaret; /** @@ -125,7 +125,7 @@ class Nav extends Widget $this->params = Yii::$app->request->getQueryParams(); } if ($this->dropDownCaret === null) { - $this->dropDownCaret = Html::tag('b', '', ['class' => 'caret']); + $this->dropDownCaret = ''; } Html::addCssClass($this->options, ['widget' => 'nav']); } diff --git a/tests/NavTest.php b/tests/NavTest.php index 7044e22..55dbd5c 100644 --- a/tests/NavTest.php +++ b/tests/NavTest.php @@ -41,7 +41,7 @@ class NavTest extends TestCase $expected = <<
  • Page1
  • -
  • Page1
  • -
  • Page1
  • -