mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-06 11:24:09 +02:00
Switch to (outline) buttons for the expander
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
0cf8fca4da
commit
84b5e98f25
|
|
@ -169,13 +169,15 @@ search backend.
|
|||
const num_hidden_results = r.sub_results.length - index_s;
|
||||
const wrapper_id = `collapsible-subresults-${index_r}`;
|
||||
const $action = $("<span>").text("▶ Show");
|
||||
const $expander = $("<a>")
|
||||
const $expander = $("<button>")
|
||||
.attr("data-bs-toggle", "collapse")
|
||||
.attr("data-bs-target", `#${wrapper_id}`)
|
||||
.attr("href", "#")
|
||||
.attr("role", "button")
|
||||
.attr("aria-expanded", "false")
|
||||
.attr("aria-controls", wrapper_id)
|
||||
.attr("type", "button")
|
||||
.addClass("btn")
|
||||
.addClass("btn-sm")
|
||||
.addClass("btn-outline-secondary")
|
||||
.append($action)
|
||||
.append($("<span>").text(` ${num_hidden_results} more ${resultsString(num_hidden_results)} from ${r.meta.title}`));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue