Skip to content

Commit 2745adf

Browse files
committed
chore(playground): make lighthouse 100 in all
1 parent 1a580ed commit 2745adf

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

playground/app/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ export default function JsonZonConverter() {
108108
{/* JSON Editor */}
109109
<div className="w-full md:w-1/2 h-1/2 md:h-full relative pr-0 md:pr-1">
110110
<div className="absolute top-0 left-0 right-0 z-10 flex justify-between items-center px-4 py-2 bg-gray-700 rounded-t-none md:rounded-t-lg mr-0 md:mr-1">
111-
<div className="text-white font-semibold flex items-center gap-2">
111+
<label htmlFor='json-editor' className="text-white font-semibold flex items-center gap-2">
112112
<JSONIcon />
113113
JSON
114-
</div>
114+
</label>
115115
<div className="relative">
116116
<button
117117
onClick={() => setShowExamples(!showExamples)}
@@ -145,6 +145,7 @@ export default function JsonZonConverter() {
145145
onValueChange={handleJsonChange}
146146
highlight={(code) => Prism.highlight(code, Prism.languages.json, 'json')}
147147
padding={16}
148+
textareaId='json-editor'
148149
style={{
149150
fontFamily: '"Fira code", "Fira Mono", monospace',
150151
fontSize: 14,
@@ -172,10 +173,10 @@ export default function JsonZonConverter() {
172173
{/* ZON Editor */}
173174
<div className="w-full md:w-1/2 h-1/2 md:h-full relative pl-0 md:pl-1">
174175
<div className="absolute top-0 left-0 right-0 z-10 flex justify-between items-center px-4 py-2 bg-gray-700 rounded-t-none md:rounded-t-lg ml-0 md:ml-1">
175-
<div className="text-white font-semibold flex items-center gap-2">
176+
<label htmlFor='zon-editor' className="text-white font-semibold flex items-center gap-2">
176177
<ZonLogo />
177178
ZON
178-
</div>
179+
</label>
179180
<div className="flex items-center gap-2">
180181
<a
181182
href="https://www.npmjs.com/package/zzon"
@@ -219,6 +220,7 @@ export default function JsonZonConverter() {
219220
onValueChange={handleZonChange}
220221
highlight={(code) => Prism.highlight(code, Prism.languages.zig, 'zig')}
221222
padding={16}
223+
textareaId='zon-editor'
222224
style={{
223225
fontFamily: '"Fira code", "Fira Mono", monospace',
224226
fontSize: 14,

0 commit comments

Comments
 (0)