Error container improvement
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -233,12 +233,15 @@
|
|||||||
<path d="m6 6 12 12" />
|
<path d="m6 6 12 12" />
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<p
|
<p
|
||||||
id="errorContainer"
|
id="errorContainer"
|
||||||
class="ml-2 [&:not(:first-child)]:mt-0 text-red-700 dark:text-red-400 text-sm"
|
class="absolute ml-2 left-0 -bottom-6 text-red-700 dark:text-red-400 text-sm"
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-wrap-reverse gap-x-10 gap-y-4 justify-center">
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="flex flex-wrap-reverse mt-5 gap-x-10 gap-y-4 justify-center"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
id="outlineButton"
|
id="outlineButton"
|
||||||
@@ -300,6 +303,7 @@
|
|||||||
function clearInput() {
|
function clearInput() {
|
||||||
inputField.value = "";
|
inputField.value = "";
|
||||||
clearButton.style.display = "none";
|
clearButton.style.display = "none";
|
||||||
|
errorContainer.textContent = "";
|
||||||
inputField.focus();
|
inputField.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user