Skip to content

Commit e7eb2bd

Browse files
committed
fix(radiosfield): prevent css to apply on plain html radios
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 3857b00 commit e7eb2bd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

css/styles.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ form#plugin_formcreator_form {
389389
}
390390

391391
#plugin_formcreator_form input[type = checkbox]:focus + label,
392-
#plugin_formcreator_form input[type = radio]:focus + label,
392+
#plugin_formcreator_form input[type = radio].new_radio:focus + label,
393393
#plugin_formcreator_form input[type = file]:focus {
394394
color: #66afe9;
395395
color: rgba(102,175,233, 1);
@@ -430,31 +430,31 @@ form#plugin_formcreator_form {
430430
.radios .form-group-radio + label {
431431
margin-left: 7px;
432432
}
433-
input[type = radio] {
433+
input[type = radio].new_radio {
434434
display: none;
435435
}
436436
.label-radio .radio {
437437
padding: 2px 0;
438438
}
439-
input[type = radio] + label.label-radio span {
439+
input[type = radio].new_radio + label.label-radio span {
440440
display: inline-block;
441441
position: absolute;
442442
width: 16px;
443443
height: 16px;
444444
}
445-
input[type = radio] + label.label-radio .box {
445+
input[type = radio].new_radio + label.label-radio .box {
446446
background-color: #fff;
447447
border: 2px solid #727272;
448448
border-radius: 50%;
449449
}
450-
input[type = radio] + label.label-radio .check {
450+
input[type = radio].new_radio + label.label-radio .check {
451451
left: 4px;
452452
top: 4px;
453453
width: 0px;
454454
height: 0px;
455455
opacity: 0;
456456
}
457-
input[type = radio]:checked + label.label-radio .check {
457+
input[type = radio].new_radio:checked + label.label-radio .check {
458458
border: 6px solid #727272;
459459
border-radius: 50%;
460460
transition: opacity 0.3s ease;
@@ -1099,7 +1099,7 @@ a.plugin_formcreator_formTile_title {
10991099
opacity: 1;
11001100
color: #3874BC;
11011101
}
1102-
.plugin_formcreator_sort:hover .radios input[type = radio] + label:before {
1102+
.plugin_formcreator_sort:hover .radios input[type = radio].new_radio + label:before {
11031103
background-color: #3874BC;
11041104
border: 2px solid #3874BC;
11051105
}
@@ -1110,7 +1110,7 @@ a.plugin_formcreator_formTile_title {
11101110
text-align: left;
11111111
margin: 0 20px;
11121112
}
1113-
.plugin_formcreator_sort .radios input[type = radio] + label {
1113+
.plugin_formcreator_sort .radios input[type = radio].new_radio + label {
11141114
display: inline-block;
11151115
margin-right: 10px;
11161116
}

inc/field/radiosfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function getRenderedHtml($canEdit = true) {
119119
$html .= '<span class="form-group-radio">';
120120
$html .= Html::input($fieldName, [
121121
'type' => 'radio',
122-
'class' => 'form-control',
122+
'class' => 'new_radio form-control',
123123
'id' => $domId . '_' . $i,
124124
'value' => $value
125125
] + $checked);

0 commit comments

Comments
 (0)