Skip to content
Snippets Groups Projects
Unverified Commit 970cbcae authored by Conrad Zelck's avatar Conrad Zelck
Browse files

fix: repair invalid label with p


The label refered to a textarea before. This was replaced with a div.
A div can't be reference by a label. Some make it a p and set for a11y
aria-labelledby onto #input and #output.

Signed-off-by: default avatarConrad Zelck <git@simpel.cc>
parent b50880c7
No related branches found
No related tags found
No related merge requests found
......@@ -206,13 +206,13 @@
<div class="two-column">
<div class="left">
<div class="flex-space-between">
<label for="input" id="label-inputfield" class="labelLikeHeading">Input field</label>
<p id="label-inputfield" class="label">Input field</p>
<button type="button" disabled id="convert" name="convert" title="Convert input.
You can use this shortcut:
OSX: [ Ctrl ] + [ Opt ] + [ p ]
WIN: [ Alt ] + [ p ]" accesskey="p" onclick="pandoc(true)">Convert [p]</button>
</div>
<div id="input" role="textbox" aria-multiline="true" contenteditable="true"></div>
<div id="input" role="textbox" aria-multiline="true" aria-labelledby="label-inputfield" contenteditable="true"></div>
</div>
<div class="right">
<div class="flex-space-between">
......@@ -222,7 +222,7 @@ You can use this shortcut:
OSX: [ Ctrl ] + [ Opt ] + [ c ]
WIN: [ Alt ] + [ c ]" accesskey="c" onclick="copyOutput()">Copy output field [c]</button>
</div>
<div id="output"></div>
<div id="output" aria-labelledby="label-outputfield"></div>
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment