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)')