mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-03 17:54:14 +02:00
Use a <button> for the closer
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
84b5e98f25
commit
af1e9382ca
|
|
@ -121,9 +121,12 @@ search backend.
|
||||||
.append($("<span>")
|
.append($("<span>")
|
||||||
.text("Search results")
|
.text("Search results")
|
||||||
.css({ fontWeight: "bold" }))
|
.css({ fontWeight: "bold" }))
|
||||||
.append($("<span>")
|
.append($("<button>")
|
||||||
.addClass("td-offline-search-results__close-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")
|
.attr("aria-label", "Close")
|
||||||
.on("click", () => {
|
.on("click", () => {
|
||||||
$targetSearchInput.val("");
|
$targetSearchInput.val("");
|
||||||
|
|
|
||||||
|
|
@ -677,3 +677,8 @@ dd {
|
||||||
.td-offline-search-results .spinner-container {
|
.td-offline-search-results .spinner-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.td-offline-search-results__close-button {
|
||||||
|
// Prevent the label from rendering white on white.
|
||||||
|
--bs-btn-color: unset;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue