-
Notifications
You must be signed in to change notification settings - Fork 3
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
Language selector behaviour is buggy on different devices #93
Comments
@htmlboy could you check this when you have some spare time? Thanks! |
@josepjaume ok! |
I'm not a big fan of this Foundation dropdown because it's quite dependant on markup and doesn't block the trigger's link loading (or it doesn't block a second click, not sure about that). Before considering rewriting it, would removing the href attribute on the trigger link (the selected language) solve the bug? |
@lastpotion please chime in. |
I checked all the respective CSS and HTML possible classes/tags as for example all the z-index, etc. Also I tried removing the href attribute on the trigger link, as @htmlboy suggest, but got the same result, it's not loading the respective locale. I reproduced the issue at staging and design deployed apps and of course on localhost, sadly any of them worked or give me any hint about what is happening. Although, I noticed testing on my smartphone that at the same time I tried to I can't even guess where this tricky behaviour is coming, so can you try to reproduce it and share your thoughts? |
@josepjaume do you mean it's not fixed in #143 ? |
@htmlboy @josepjaume that PR fixes the bug for me (my bet is that @josepjaume didn't see the PR) :) |
Oh my, I didn't see it, sorry! Good work! |
🎩 User Story
I think Language selector behaviour it's a bit strange, It might be because the selector is an
ul > a
element.On Desktop, as long the user hovers the
ul > a
and then click on a different language its fine, but if the user clicks on the language selector itself, the click event on thea
takes precedence and refreshes the page with the current language.As per mobile, on the browser (Chrome) emulating different smartphones/tablets seems showing but the user is not able to change the language. Also I tested the app on a couple of physical smartphones (Iphones 6 and OnePlus 3) and couldn't display the language dropdown on decidim-design.
📋 Related documentation
To reproduce the error on the current build of decidim-design, just change
href
on the the language links to something random like/es/e or /ca/c
and then try to navigate.http://decidim-design.herokuapp.com/
🎯 Acceptance criteria
Click or tap on the language selector should not redirect to the current language, only display the dropdown.
📌 Related issues
None
The text was updated successfully, but these errors were encountered: