Skip to content

Commit 9a57d95

Browse files
authored
[4.0] Updated switcher.php layout and its corresponding scss files (#32377)
* Update _form.scss #32367 (comment) * Update switcher.php * Update switcher.scss
1 parent 9117e5f commit 9a57d95

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

administrator/templates/atum/scss/blocks/_form.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@
5757

5858
}
5959

60-
.control-group {
61-
.switcher__legend {
62-
font-size: $label-font-size;
63-
}
64-
}
65-
6660
.spacer {
6761
hr {
6862
width: 380px;
@@ -151,12 +145,6 @@ legend {
151145
bottom: auto;
152146
}
153147

154-
.switcher__legend {
155-
margin-bottom: 0;
156-
font-size: $label-font-size;
157-
color: var(--atum-special-color);
158-
}
159-
160148
.input-group-append {
161149
overflow: hidden;
162150
transform: translate3d(0, 0, 0);

build/media_source/system/scss/fields/switcher.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,3 @@ $switcher-height: 28px;
100100
.switcher input ~ input:checked ~ .toggle-outside .toggle-inside {
101101
left: ($switcher-width / 2) - 1;
102102
}
103-
104-
.switcher__legend {
105-
padding: 5px 0;
106-
margin-bottom: 1rem;
107-
font-size: 1rem;
108-
font-weight: 400;
109-
}

layouts/joomla/form/field/radio/switcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
?>
7070
<fieldset <?php echo $attr; ?>>
71-
<legend class="switcher__legend visually-hidden">
71+
<legend class="visually-hidden">
7272
<?php echo $label; ?>
7373
</legend>
7474
<div class="switcher<?php echo ($readonly || $disabled ? ' disabled' : ''); ?>">

0 commit comments

Comments
 (0)