improve markup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user