Switch to (outline) buttons for the expander

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2026-03-24 11:07:57 +01:00
parent 0cf8fca4da
commit 84b5e98f25

View file

@ -169,13 +169,15 @@ search backend.
const num_hidden_results = r.sub_results.length - index_s; const num_hidden_results = r.sub_results.length - index_s;
const wrapper_id = `collapsible-subresults-${index_r}`; const wrapper_id = `collapsible-subresults-${index_r}`;
const $action = $("<span>").text("▶ Show"); const $action = $("<span>").text("▶ Show");
const $expander = $("<a>") const $expander = $("<button>")
.attr("data-bs-toggle", "collapse") .attr("data-bs-toggle", "collapse")
.attr("data-bs-target", `#${wrapper_id}`) .attr("data-bs-target", `#${wrapper_id}`)
.attr("href", "#")
.attr("role", "button")
.attr("aria-expanded", "false") .attr("aria-expanded", "false")
.attr("aria-controls", wrapper_id) .attr("aria-controls", wrapper_id)
.attr("type", "button")
.addClass("btn")
.addClass("btn-sm")
.addClass("btn-outline-secondary")
.append($action) .append($action)
.append($("<span>").text(` ${num_hidden_results} more ${resultsString(num_hidden_results)} from ${r.meta.title}`)); .append($("<span>").text(` ${num_hidden_results} more ${resultsString(num_hidden_results)} from ${r.meta.title}`));