Skip to content

Feature: Multi-Language Switcher Improvements#2403

Merged
1 commit merged into
masterfrom
unknown repository
Aug 16, 2019
Merged

Feature: Multi-Language Switcher Improvements#2403
1 commit merged into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 15, 2019

  1. Do not show the current choosen language unless your want to choose for a new one.
  2. Show tooltip when moving your mouse onto the language symbol for the choosen language.
    1
    2

@XhmikosR
Copy link
Copy Markdown
Contributor

FYI this will conflict with #2392

@ghost ghost requested a review from alexandrtovmach August 15, 2019 08:35
@ghost
Copy link
Copy Markdown
Author

ghost commented Aug 15, 2019

@XhmikosR:Thanks, either you or I will meet with the conflict and fix it later, whatever submit is merged.

@ghost ghost changed the title Feature: Multi-Language Switcher Feature: Multi-Language Switcher Improvements Aug 15, 2019
@ghost ghost self-requested a review August 15, 2019 08:51
@XhmikosR
Copy link
Copy Markdown
Contributor

XhmikosR commented Aug 15, 2019 via email

@ghost
Copy link
Copy Markdown
Author

ghost commented Aug 15, 2019

Right now even if a page doesn't have a translation, the switcher shows all of them.

Yes, but it would be nicer if we can show the current language as a tooltip for all of the users to see which language he/she is viewing with, and what's more, the picked language doesn't need to be shown in the menu list, unless you choose another one.

That's my opition. For futher changes, maybe we can get together to change it little by little.

Comment thread layouts/partials/header.hbs Outdated
1. Do not show the current choosen language unless your want to choose

for a new one.

2. Show tooltip when moving your mouse onto the language symbol for the

choosen language.
@ghost ghost requested a review from alexandrtovmach August 15, 2019 12:26
@ghost ghost merged commit 87f23a9 into nodejs:master Aug 16, 2019
@ghost ghost mentioned this pull request Aug 23, 2019
ghost pushed a commit that referenced this pull request Aug 24, 2019
Notice:

This 'rect' is invisible as a container for the language symbol
to show the tooltip in both IE and Chrome, FF,ect.

For reasons of accessibility, user agents should always make the content
of the 'title' child element to the root svg element available to users.
However, this is typically done through other means than the tooltips
used for nested SVG and graphics elements, e.g., by displaying in a browser
tab.

See more at: https://svgwg.org/svg2-draft/struct.html#TitleElement

Issues and Subjects related to this are:
1、#2294.
2、#2403.
3、#2392.
This pull request was closed.
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.

4 participants