Skip to content

Commit

Permalink
Merge pull request #185 from contao-themes-net/fix-search-box
Browse files Browse the repository at this point in the history
fix search icon bug; change search box styling
  • Loading branch information
MDevster authored Mar 15, 2024
2 parents 8b14db0 + 483c6f1 commit 2f9429e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Types of changes
Security in case of vulnerabilities.
)

## [3.3.2](https://github.com/contao-themes-net/mate-theme-bundle/tree/3.3.2) – 2024-03-15

- [Fixed] Click on header search icon starts reload of start page ([#183](https://github.com/contao-themes-net/mate-theme-bundle/issues/183))
- [Changed] Change search box styling

## [3.3.1](https://github.com/contao-themes-net/mate-theme-bundle/tree/3.3.1) – 2024-02-26

- [Fixed] Fix select field validation
Expand Down
3 changes: 2 additions & 1 deletion public/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,15 @@ jQuery(document).ready(function ($) {
/* ===================== *
* Suche *
* ====================== */
$(".search a").click(function () {
$(".search a").click(function (e) {
if ($('.search-box').hasClass("active")) {
$('.search-box').removeClass('active');
$('div').remove('.overlay');
} else {
$('.search-box').addClass('active');
$('body').append('<div class="overlay active"></div>');
}
e.preventDefault();
});

$(document).click(function (event) {
Expand Down
2 changes: 1 addition & 1 deletion public/js/theme.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f9429e

Please sign in to comment.