From 68e3a18160bd26bdac61cf8cb1e831ca206b0fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20St=C4=99pie=C5=84?= Date: Tue, 6 Aug 2024 11:02:28 +0200 Subject: [PATCH 1/2] Update switcher.php --- layouts/joomla/form/field/radio/switcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/joomla/form/field/radio/switcher.php b/layouts/joomla/form/field/radio/switcher.php index 191a5a07850a..c517ab000334 100644 --- a/layouts/joomla/form/field/radio/switcher.php +++ b/layouts/joomla/form/field/radio/switcher.php @@ -62,7 +62,7 @@ */ $input = ''; -$attr = 'id="' . $id . '"'; +$attr = 'id="' . $id . '" class="radio"'; $attr .= $onchange ? ' onchange="' . $onchange . '"' : ''; $attr .= $dataAttribute; From 348bd8756ed2d4b9bfec2cf642c46776b889b546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20St=C4=99pie=C5=84?= Date: Tue, 6 Aug 2024 11:03:49 +0200 Subject: [PATCH 2/2] Update buttons.php --- layouts/joomla/form/field/radio/buttons.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/joomla/form/field/radio/buttons.php b/layouts/joomla/form/field/radio/buttons.php index 31109f41469d..3f33c3b66263 100644 --- a/layouts/joomla/form/field/radio/buttons.php +++ b/layouts/joomla/form/field/radio/buttons.php @@ -66,6 +66,8 @@ if ($required) { $attribs[] = 'class="required radio"'; +} else { + $attribs[] = 'class="radio"'; } if ($readonly || $disabled) {