Merge pull request #26 from Krakozaber/master

Bootstrap5 icons asset
This commit is contained in:
simialbi 2021-12-19 14:03:52 +01:00 committed by GitHub
commit 97a3b653b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Yii Framework 2 bootstrap5 extension Change Log
2.0.3 under development 2.0.3 under development
----------------------- -----------------------
- Enh #26: Add Bootstrap icon asset (Krakozaber)
- Enh #18: Add rangeInput(), colorInput() and switch mode to checkbox() in class ActiveField (WinterSilence) - Enh #18: Add rangeInput(), colorInput() and switch mode to checkbox() in class ActiveField (WinterSilence)
- Bug #19: Fix value of attribute "aria-current" in LinkPager::renderPageButton() (WinterSilence) - Bug #19: Fix value of attribute "aria-current" in LinkPager::renderPageButton() (WinterSilence)
- Bug #23: Fix class attribute in listBox() and dropDownList() of class ActiveField (WinterSilence) - Bug #23: Fix class attribute in listBox() and dropDownList() of class ActiveField (WinterSilence)

View File

@ -31,7 +31,11 @@
}, },
"require-dev": { "require-dev": {
"yiisoft/yii2-coding-standards": "~2.0", "yiisoft/yii2-coding-standards": "~2.0",
"phpunit/phpunit": "^6.5.14" "phpunit/phpunit": "^6.5.14",
"twbs/bootstrap-icons": "^1.7.2"
},
"suggest": {
"twbs/bootstrap-icons": "Add this package to the `require` section of your `composer.json` if you'd like to use the bootstrap icon asset."
}, },
"repositories": [ "repositories": [
{ {

View File

@ -0,0 +1,22 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
declare(strict_types=1);
namespace yii\bootstrap5;
use yii\web\AssetBundle;
class BootstrapIconAsset extends AssetBundle
{
public $sourcePath = '@vendor/twbs/bootstrap-icons/font';
public $css = [
'bootstrap-icons.css'
];
}