Skip to content

Commit 02baee5

Browse files
committed
Fix #119: Correct required star styling for BS custom checkbox control label
1 parent 4b77528 commit 02baee5

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/assets/css/activeform.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2019
2+
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
33
* @package yii2-widgets
44
* @subpackage yii2-widget-activeform
55
* @version 1.5.8
@@ -273,16 +273,11 @@ label.disabled, label.readonly, .disabled label, .readonly label {
273273
margin-top: -5px;
274274
}
275275

276-
.form-group.required .has-star::after,
276+
.form-group.required .has-star:not(.custom-control-label)::after,
277277
.is-required::after {
278278
content: "*";
279279
margin-left: 3px;
280280
font-weight: normal;
281281
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
282282
color: tomato;
283-
}
284-
285-
.form-group.required .has-star.custom-control-label::after {
286-
position: absolute;
287-
left: 100%;
288283
}

src/assets/css/activeform.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)