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] language menu in main-nav alignment when using dropdownColumns #516

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

pxamike
Copy link
Contributor

@pxamike pxamike commented Apr 12, 2019

Fixes issue: #507

The main issue with combining dropdownColumns = 1 and enableLangMenuInNavigation = 1 is that the container that the language-menu is placed in is not a bootstrap-container-width anymore. This is because the dropdown columns needs this condition for the dropdown menus to occupy the full viewport width.

Therefore the open language-menu covers the full width of the viewport. This fix constrains that to Bootstrap-limits but makes sure it still looks the way it did before in viewport widths < 992 px.

Typoscript configuration used
themes.configuration.isDevelopment = 1
themes.configuration.menu.main.enableLangMenuInNavigation = 1
themes.configuration.elem.status.showHeaderTopLangMenu = 1
themes.configuration.elem.status.showHeaderTopSearch = 0
themes.configuration.elem.status.showHeaderMainMenuSearch = 0
themes.configuration.elem.status.showHeaderTopLangLabel = 1

themes.configuration.menu.main.dropdownColumns = 1

Screenshots:
(note1: showHeaderTopLangMenu = 1 is also enabled in the screenshots to have something to compare with)
(note2: the white border of the open language menu in main-navigation was fixed in another pull request, see https://github.com/t3kit/theme_t3kit/pull/502/files#diff-a496fbbc3421dda897c120fdffc0969eR2707 )

Desktop language menu closed before
language_0_0_before
Desktop language menu closed after
language_0_1_after

Desktop language menu open before
language_1_0_before
Desktop language menu open after
language_1_1_after

Desktop 2 language menu open before
language_2_0_before
Desktop 2 language menu open after
language_2_1_after

Tablet language menu open before
language_3_0_before
Tablet language menu open after
language_3_1_after

Mobile language menu open before
language_4_0_before
Mobile language menu open after
language_4_1_after

@dmh dmh merged commit f28b2cd 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