File tree Expand file tree Collapse file tree 4 files changed +29
-2
lines changed
public/main/inc/lib/pear/HTML/QuickForm Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 25
25
}
26
26
}
27
27
28
+ & :has (&-input--legacy:checked ) & -box ,
28
29
& .p-highlight & -box {
29
30
@apply border-primary bg-primary ;
30
31
}
34
35
@apply border-primary ;
35
36
}
36
37
38
+ & :has (.p-checkbox-input--legacy :checked ) .p-checkbox-box ,
37
39
& .p-highlight .p-checkbox-box {
38
40
@apply border-primary bg-primary text-white ;
39
41
}
Original file line number Diff line number Diff line change 16
16
transform : translateZ (0 ) scale (0.1 );
17
17
}
18
18
19
+ & :has (&-input--legacy:checked ) & -icon ,
19
20
& .p-highlight & -icon {
20
21
@apply visible ;
21
22
transform : translateZ (0 ) scale (1 , 1 );
33
34
@apply w-1 .5 h-1 .5 duration-200 bg-white ;
34
35
}
35
36
37
+ & :has (&-input--legacy:checked ) & -box ,
36
38
& .p-highlight & -box {
37
39
@apply border-primary bg-primary ;
38
40
}
42
44
@apply border-primary ;
43
45
}
44
46
47
+ & :has (.p-radiobutton-input--legacy :checked ) .p-radiobutton-box ,
45
48
& .p-highlight .p-radiobutton-box {
46
49
@apply border-primary bg-primary text-white ;
47
50
}
Original file line number Diff line number Diff line change @@ -114,12 +114,14 @@ public function getChecked()
114
114
*/
115
115
public function toHtml ()
116
116
{
117
- $ extraClass = "appearance-none checked:bg-support-4 outline-none " ;
117
+ $ extraClass = "p-checkbox-input p-checkbox-input--legacy " ;
118
+
118
119
if (isset ($ this ->_attributes ['class ' ])) {
119
120
$ this ->_attributes ['class ' ] .= $ extraClass ;
120
121
} else {
121
122
$ this ->_attributes ['class ' ] = $ extraClass ;
122
123
}
124
+
123
125
if (0 == strlen ($ this ->_text )) {
124
126
$ label = '' ;
125
127
} elseif ($ this ->_flagFrozen ) {
@@ -131,7 +133,14 @@ public function toHtml()
131
133
$ id = $ this ->getAttribute ('id ' );
132
134
133
135
return '<div id=" ' .$ name .'" class=" ' .$ checkClass .'">
136
+ <div class="p-checkbox p-component">
134
137
' .parent ::toHtml ().'
138
+ <div class="p-checkbox-box" data-pc-section="box">
139
+ <div class="p-checkbox-icon" data-pc-section="icon">
140
+ <span class="mdi mdi-check" aria-hidden="true"></span>
141
+ </div>
142
+ </div>
143
+ </div>
135
144
<label for=" ' .$ id .'" class=" ' .$ labelClass .'">
136
145
' .$ this ->_text .
137
146
'</label>
Original file line number Diff line number Diff line change @@ -111,6 +111,14 @@ public function getTemplate(string $layout): string
111
111
*/
112
112
public function toHtml ()
113
113
{
114
+ $ extraClass = "p-radiobutton-input p-radiobutton-input--legacy " ;
115
+
116
+ if (isset ($ this ->_attributes ['class ' ])) {
117
+ $ this ->_attributes ['class ' ] .= $ extraClass ;
118
+ } else {
119
+ $ this ->_attributes ['class ' ] = $ extraClass ;
120
+ }
121
+
114
122
if (0 == strlen ($ this ->_text )) {
115
123
$ label = '' ;
116
124
} elseif ($ this ->isFrozen ()) {
@@ -126,7 +134,12 @@ public function toHtml()
126
134
$ id = $ this ->getAttribute ('id ' );
127
135
128
136
return '<div class=" ' .$ radioClass .'">
129
- ' .parent ::toHtml ().'
137
+ <div class="p-radiobutton p-component">
138
+ ' .parent ::toHtml ().'
139
+ <div class="p-radiobutton-box" data-pc-section="box">
140
+ <div class="p-radiobutton-icon" data-pc-section="icon"></div>
141
+ </div>
142
+ </div>
130
143
<label for=" ' .$ id .'" class=" ' .$ labelClass .'"> ' .$ this ->_text .'</label>
131
144
</div> ' ;
132
145
}
You can’t perform that action at this time.
0 commit comments