Skip to content

Commit

Permalink
[5.2] Add custom css (#43392)
Browse files Browse the repository at this point in the history
* add custom css

fix 41205

* cs fix

* Update libraries/src/HTML/Helpers/Select.php

* Update libraries/src/HTML/Helpers/Select.php

* pin mysql to 8.3.0

* sign

* revert drone.yml change
  • Loading branch information
rdeutz authored Jun 3, 2024
1 parent aa3ab7c commit 22d87a0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/src/HTML/Helpers/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,14 @@ public static function radiolist(
$idtag = false,
$translate = false
) {
$class = '';

if (\is_array($attribs)) {
if (\array_key_exists('class', $attribs)) {
$class = ' ' . $attribs['class'];
unset($attribs['class']);
}

$attribs = ArrayHelper::toString($attribs);
}

Expand Down Expand Up @@ -662,7 +669,7 @@ public static function radiolist(
$extra .= ((string) $k === (string) $selected ? ' checked="checked" ' : '');
}

$html .= '<input type="radio" class="form-check-input" name="' . $name . '" id="' . $id . '" value="' . $k . '" '
$html .= '<input type="radio" class="form-check-input' . $class . '" name="' . $name . '" id="' . $id . '" value="' . $k . '" '
. $extra . $attribs . '>';
$html .= '<label for="' . $id . '" class="form-check-label" id="' . $id . '-lbl">' . $t . '</label>';
$html .= '</div>';
Expand Down

0 comments on commit 22d87a0

Please sign in to comment.