Skip to content

Commit 2fc6bf2

Browse files
author
John P. rouillard
committed
bug: issue #69 - Put error message in search fragment below input not next to input.
1 parent 4aab5b7 commit 2fc6bf2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

html/classhelper.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,7 @@ table.popup-table tr:hover {
120120
color: red;
121121
font-size: 14px;
122122
margin-left: 4px;
123+
padding-block-start: 0.25em;
123124
}
125+
126+
*:focus-visible { outline-offset: 3px; }

html/classhelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ class ClassHelper extends HTMLElement {
12391239
parent.dataset.errorField = field;
12401240
// remove if there was already an error message
12411241
parent.getElementsByClassName("error-message").item(0)?.remove();
1242-
let span = document.createElement("span");
1242+
let span = document.createElement("div");
12431243
span.classList.add("error-message");
12441244
span.textContent = `Invalid value: ${value}`;
12451245
parent.appendChild(span);

0 commit comments

Comments
 (0)