Skip to content

Commit

Permalink
Refactor toggle buttons in language and theme components. (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Feb 22, 2024
1 parent e0b69af commit 8f0d1be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Framework/resource/layout/component/toggle_language.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use App\Framework\Asset\LocaleAsset;
use PHPForge\Component\Dropdown;
use PHPForge\Component\Item;
use PHPForge\Html\ButtonToggle;
use PHPForge\Component\Toggle;
use yii\helpers\Url;
use yii\web\View;

Expand Down Expand Up @@ -64,7 +64,7 @@
)
->listClass('dropdown-menu dropdown-menu-end shadow')
->toggleButton(
ButtonToggle::widget()
Toggle::widget()
->ariaExpanded('false')
->ariaLabel('Toggle language dropdown')
->class('btn btn-bd-primary dropdown-toggle d-flex align-items-center text-secondary-emphasis')
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/resource/layout/component/toggle_theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use App\Framework\Asset\ToggleThemeAsset;
use PHPForge\Component\Dropdown;
use PHPForge\Component\Item;
use PHPForge\Html\ButtonToggle;
use PHPForge\Component\Toggle;
use sjaakp\icon\Icon;
use yii\web\View;

Expand Down Expand Up @@ -60,7 +60,7 @@
)
->listClass('dropdown-menu dropdown-menu-end shadow')
->toggleButton(
ButtonToggle::widget()
Toggle::widget()
->ariaExpanded('false')
->ariaLabel('Toggle theme (auto)')
->class('btn btn-bd-primary dropdown-toggle d-flex align-items-center')
Expand Down
2 changes: 1 addition & 1 deletion src/UseCase/Site/view/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PHPForge\Html\Group\Div;
use PHPForge\Html\Helper\Encode;
use PHPForge\Html\Img;
use PHPForge\Html\Multimedia\Img;
use PHPForge\Html\Semantic\H;
use yii\web\View;

Expand Down

0 comments on commit 8f0d1be

Please sign in to comment.