changed span inside <label> to <h1>

also make it screenreader only.
This commit is contained in:
westtle 2024-01-28 14:15:35 +07:00
parent ab2798c123
commit 9f9569491b

View file

@ -14,10 +14,9 @@
<body>
<main>
<section class="simple-note">
<h1 class="simple-note__heading">Simple Note</h1>
<div class="simple-note__inputs">
<label class="simple-note__label simple-note__label--title">
<span class="simple-note__something-idk">Title:</span>
<h1 class="sr-only">Note title</h1>
<input class="simple-note__input simple-note__input--title" type="text" spellcheck="false">
</label>
<textarea class="simple-note__input simple-note__input--body" spellcheck="false">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Atque amet veniam nulla quia harum explicabo.</textarea>