Skip to content

Commit 64b83af

Browse files
committed
Updates to release v1.6.1 fix #129
1 parent d54f986 commit 64b83af

File tree

10 files changed

+19
-12
lines changed

10 files changed

+19
-12
lines changed

CHANGE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Change Log: `yii2-widget-activeform`
22
====================================
33

4+
## Version 1.6.1
5+
6+
**Date**: _under development_
7+
8+
- (enh #129): Enhance radioList and checkboxList styles.
9+
410
## Version 1.6.0
511

612
**Date**: 01-Sep-2021

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015 - 2019, Kartik Visweswaran
1+
Copyright (c) 2015 - 2021, Kartik Visweswaran
22
Krajee.com
33
All rights reserved.
44

src/ActiveField.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2021
55
* @package yii2-widgets
66
* @subpackage yii2-widget-activeform
7-
* @version 1.6.0
7+
* @version 1.6.1
88
*/
99

1010
namespace kartik\form;
@@ -777,11 +777,12 @@ public function listBox($items, $options = [])
777777

778778
/**
779779
* Gets custom CSS for custom controls supported in bootstrap 4.x and 5.x
780-
* @param string $type
780+
* @param string $type
781781
* @return string
782782
* @throws Exception
783783
*/
784-
protected function getCustomCss($type) {
784+
protected function getCustomCss($type)
785+
{
785786
return $this->form->isBs(5) ? "form-{$type}" : "custom-{$type}";
786787
}
787788

@@ -1759,7 +1760,7 @@ protected function getToggleFieldList($type, $items, $options = [], $asBtnGrp =
17591760
$disabled = ArrayHelper::remove($options, 'disabledItems', []);
17601761
$readonly = ArrayHelper::remove($options, 'readonlyItems', []);
17611762
$cust = $this->isCustomControl($options);
1762-
$pre = $cust && !$isBs5 ? 'custom-control' : 'form-check';
1763+
$pre = $cust ? ($isBs5 ? 'form-check' : 'custom-control') : ($notBs3 ? "me-1 mr-1 bs-{$type}" : '');
17631764
if ($asBtnGrp) {
17641765
$css = ['btn-group'];
17651766
if (!$isBs5) {

src/ActiveForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2021
55
* @package yii2-widgets
66
* @subpackage yii2-widget-activeform
7-
* @version 1.6.0
7+
* @version 1.6.1
88
*/
99

1010
namespace kartik\form;

src/ActiveFormAsset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2021
55
* @package yii2-widgets
66
* @subpackage yii2-widget-activeform
7-
* @version 1.6.0
7+
* @version 1.6.1
88
*/
99

1010
namespace kartik\form;

src/Bs4CustomFileInputAsset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2021
55
* @package yii2-widgets
66
* @subpackage yii2-widget-activeform
7-
* @version 1.6.0
7+
* @version 1.6.1
88
*/
99

1010
namespace kartik\form;

src/assets/css/activeform.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2021
33
* @package yii2-widgets
44
* @subpackage yii2-widget-activeform
5-
* @version 1.6.0
5+
* @version 1.6.1
66
*
77
* Active Form Styling for Bootstrap 3.x & Bootstrap 4.x
88
* Built for Yii Framework 2.0

src/assets/css/activeform.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/js/activeform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @package yii2-widget-activeform
33
* @author Kartik Visweswaran <[email protected]>
44
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2021
5-
* @version 1.6.0
5+
* @version 1.6.1
66
*
77
* Active Field Hints Display Module
88
*

src/assets/js/activeform.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)