From 9c170cb5c4917221c20d70d51a5cf3898520c5e4 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:43:30 -0300 Subject: [PATCH] Use `php-forge/html` stable. (#76) --- composer.json | 4 ++-- src/Framework/resource/layout/component/toggle_language.php | 2 +- src/Framework/resource/layout/component/toggle_theme.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 507dcd2..56fe084 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,14 @@ "npm-asset/flag-icons": "^7.1", "npm-asset/fortawesome--fontawesome-free": "^6.5", "php-forge/awesome-component": "dev-main", - "php-forge/html": "dev-main", + "php-forge/html": "^0.1", "sjaakp/yii2-icon": "^1.0", "yii2-extensions/asset-bootstrap5": "^0.1", "yii2-extensions/bootstrap5": "^0.1", "yii2-extensions/localeurls": "dev-main", "yiisoft/config": "^1.4", "yiisoft/yii2": "^2.0.49 || ^2.2", - "yiisoft/yii2-symfonymailer": "^4.0" + "yiisoft/yii2-symfonymailer": "dev-master as 4.0" }, "require-dev": { "codeception/c3": "^2.8", diff --git a/src/Framework/resource/layout/component/toggle_language.php b/src/Framework/resource/layout/component/toggle_language.php index c1bc0f1..032473c 100644 --- a/src/Framework/resource/layout/component/toggle_language.php +++ b/src/Framework/resource/layout/component/toggle_language.php @@ -63,7 +63,7 @@ ->active(Yii::$app->language === 'ru-RU'), ) ->listClass('dropdown-menu dropdown-menu-end shadow') - ->toggleButton( + ->toggle( Toggle::widget() ->ariaExpanded('false') ->ariaLabel('Toggle language dropdown') diff --git a/src/Framework/resource/layout/component/toggle_theme.php b/src/Framework/resource/layout/component/toggle_theme.php index 07da11b..5b79a56 100644 --- a/src/Framework/resource/layout/component/toggle_theme.php +++ b/src/Framework/resource/layout/component/toggle_theme.php @@ -59,7 +59,7 @@ ->linkClass('dropdown-item d-flex align-items-center'), ) ->listClass('dropdown-menu dropdown-menu-end shadow') - ->toggleButton( + ->toggle( Toggle::widget() ->ariaExpanded('false') ->ariaLabel('Toggle theme (auto)')