improve markup

This commit is contained in:
2026-01-28 07:19:17 +01:00
parent 344024e44c
commit d5724805aa
11 changed files with 27 additions and 76 deletions

View File

@@ -128,7 +128,7 @@ class SearchBox extends HTMLElement {
render() {
const compact = this.isCompact;
this.innerHTML = /* html */ `
this.innerHTML = /* html */`
<form class="search-box ${compact ? 'search-box--compact' : ''}" id="search-form">
<div class="search-row search-row-query">
<div class="search-field search-field-query">
@@ -159,7 +159,7 @@ class SearchBox extends HTMLElement {
// Track which category accordion is expanded
this._expandedCategory = this._expandedCategory || '';
return /* html */ `
return /* html */`
<!-- Accordion Category Dropdown -->
<div class="search-row search-row-filters">
<div class="category-dropdown">
@@ -547,7 +547,7 @@ class SearchBox extends HTMLElement {
customElements.define('search-box', SearchBox);
const style = document.createElement('style');
style.textContent = /* css */ `
style.textContent = /* css */`
search-box {
display: block;
}