Use a <button> for the closer

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2026-03-24 11:16:37 +01:00
parent 84b5e98f25
commit af1e9382ca
2 changed files with 10 additions and 2 deletions

View file

@ -121,9 +121,12 @@ search backend.
.append($("<span>")
.text("Search results")
.css({ fontWeight: "bold" }))
.append($("<span>")
.append($("<button>")
.addClass("td-offline-search-results__close-button")
.attr("role", "button")
.addClass("btn")
.addClass("btn-sm")
.addClass("btn-link")
.attr("type", "button")
.attr("aria-label", "Close")
.on("click", () => {
$targetSearchInput.val("");

View file

@ -677,3 +677,8 @@ dd {
.td-offline-search-results .spinner-container {
text-align: center;
}
.td-offline-search-results__close-button {
// Prevent the label from rendering white on white.
--bs-btn-color: unset;
}