diff --git a/src/templates/partials/bar.rs b/src/templates/partials/bar.rs index ebf89fe..bf66c4c 100644 --- a/src/templates/partials/bar.rs +++ b/src/templates/partials/bar.rs @@ -16,6 +16,9 @@ pub fn bar(query: &str) -> Markup { html!( (PreEscaped("
")) input type="search" name="search-box" value=(query) placeholder="Type to search"; + button type="reset" onclick="clearSearchText()" { + img src="./images/close.svg" alt="Clear button icon for clearing search input text"; + } button type="submit" onclick="searchWeb()" { img src="./images/magnifying_glass.svg" alt="Info icon for error box"; }