-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Touch Up Language Dropdown #1171
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
Conversation
… with the new dropdown For some reason editorconfig wasn't honored and tabs snuck in. Also tweaked the logic in the language dropdown and moved it to the right side of the navigation bar. Made some other minor styling and logic tweaks for easier maintenance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect!
Great job on adding multiple languages, but we should not use national flags in language selectors for the following reasons:
Best way to represent languages in a limited navbar space is by using abbreviated name of the language in the language itself. |
@sprrw very good points, would you be interested in submitting a PR? By abbreviated name you mean the two or three letter language code like "En" for example? |
Yeah, I can do a PR. Let's discuss, how do we want to present the language on the menu.
Will this be a good way? We can add ISO 639 codes as well, but on the second thought I think it'll only create unnecessary clutter without adding any useful additional information. We can also use the "language icon" (see http://www.languageicon.org/) in place of a flag to indicate there's a language dropdown. |
So something like this:
... with the language icon and dropdown arrow in the nav and each language option spelled out in it's own locale? Sounds like a great plan to me 👍
I was thinking of this more in terms of how it would be displayed in the nav bar not the actual options (e.g. |
@skipjack Does this look alright to you? |
Looks great, I would just remove the "English" section from the actual dropdown for now to conserve space as it may break the nav on smaller screen sizes: In terms of implementation though you could add that bit and just comment it out for now. That way I'll know to add it back in down the road once we've cleaned up our breakpoints a bit. |
ok, will do a PR then with that bit commented. |
Sure I'll review shortly and ping one other for review as well. |
Some follow up code-style and styling tweaks for #1148.
cc @lcxfs1991
Preview of styling tweaks: