File tree Expand file tree Collapse file tree
public/main/inc/lib/pear/HTML/QuickForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494.p-checkbox-input :checked + .p-checkbox-box .p-checkbox-icon {
9595 @apply block ;
9696}
97- .p-checkbox.p-component {
98- @apply relative inline-flex items-center mr- 2;
99- }
100- .p-checkbox.p-component input [type = " checkbox" ] {
101- @apply absolute top-0 left-0 w-5 h-5 m-0 opacity-0 cursor-pointer ;
102- z-index : 2 ;
103- }
104- .p-checkbox-box {
105- @apply w-5 h-5 flex items-center justify-center border border-gray-30 rounded ;
106- z-index : 1 ;
107- }
108- .p-checkbox.p-component + label ,
109- .p-checkbox.p-component ~ label {
110- @apply ml- 2;
111- }
112- .p-checkbox-box .p-checkbox-icon {
113- @apply hidden ;
114- }
115- .p-checkbox.p-component input [type = " checkbox" ]:checked + .p-checkbox-box {
116- @apply bg-primary border-primary ;
117- }
118- .p-checkbox.p-component input [type = " checkbox" ]:checked + .p-checkbox-box .p-checkbox-icon {
119- @apply block text-white ;
120- }
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function getChecked()
120120 */
121121 public function toHtml ()
122122 {
123- $ extraClass = "p-checkbox-input p-checkbox-input--legacy " ;
123+ $ extraClass = "p-checkbox-input " ;
124124
125125 if (isset ($ this ->_attributes ['class ' ])) {
126126 $ this ->_attributes ['class ' ] .= $ extraClass ;
@@ -141,12 +141,12 @@ public function toHtml()
141141 $ id = $ this ->getAttribute ('id ' );
142142
143143 // Ensure checkbox input has the expected class for styling.
144- $ existingClass = (string ) $ this ->getAttribute ('class ' );
144+ /* $existingClass = (string) $this->getAttribute('class');
145145 if (!str_contains($existingClass, 'p-checkbox-input')) {
146146 $this->setAttribute('class', trim($existingClass.' p-checkbox-input'));
147- }
147+ } */
148148
149- return '<div id=" ' .$ name .'" class=" ' .$ checkClass .'">
149+ return '<div id=" ' .$ name .'" class="field ' .$ checkClass .'">
150150 <div class="p-checkbox p-component ' .($ this ->getChecked () ? 'p-checkbox-checked ' : '' ).'">
151151 ' .parent ::toHtml ().'
152152 <div class="p-checkbox-box">
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function getTemplate(string $layout): string
111111 */
112112 public function toHtml ()
113113 {
114- $ extraClass = "p-radiobutton-input p-radiobutton-input--legacy " ;
114+ $ extraClass = "p-radiobutton-input " ;
115115
116116 if (isset ($ this ->_attributes ['class ' ])) {
117117 $ this ->_attributes ['class ' ] .= $ extraClass ;
@@ -121,7 +121,9 @@ public function toHtml()
121121
122122 if (0 == strlen ($ this ->_text )) {
123123 $ label = '' ;
124- } elseif ($ this ->isFrozen ()) {
124+ }
125+
126+ if ($ this ->isFrozen ()) {
125127 $ label = $ this ->_text ;
126128 if ($ this ->freezeSeeOnlySelected ) {
127129 $ invisible = $ this ->getChecked () ? '' : ' style="display:none" ' ;
You can’t perform that action at this time.
0 commit comments