Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] searchBtn/searchBox toggle rewrite. #515

Merged
merged 1 commit into from
Apr 16, 2019
Merged

Conversation

pxamike
Copy link
Contributor

@pxamike pxamike commented Apr 11, 2019

See: #505

Since mainNavigationSearchBtn and mainNavigationSearchBox are used in both HeaderTop and HeaderMainMenu (main-navigation) they can both potentially be activated. I adjusted the js so they both keep the same class-states and doesn't go out of sync with what is expanded or not. It's also handled correctly when clicking the search-overlay.

Typoscript constant for testing:
themes.configuration.elem.status.showHeaderTopSearch = 1
themes.configuration.elem.status.showHeaderMainMenuSearch = 1

  • Initial state
    1_default_state

  • Search open
    2_search_open

  • Search closed again.
    3_search_closed

@dmh dmh merged commit 08b1ecd into master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants