Page MenuHomePhabricator

Adjust visual aspect for missing languages surfaced in the language selector on mobile
Closed, ResolvedPublic

Description

After adding support to access machine translation from the language selector on mobile web (T363183), the way the missing languages is surfaced has changed.

The initial implementation presents some visual aspects that we may want to adjust:

  • The background color blends this element with the section after it. Adjust background color to use background-color-neutral-subtle from Codex colors.
  • the chevron is placed right after the text. Adjust the chevron placement to show at the end of the menu item can provide more clarity and help perceive the whole menu element as a unit.

Below the proposed changes compared with the current status:

CurrentProposed
en.m.wikipedia.org_wiki_Avocado_toast(Wiki Mobile).png (320×568 px, 34 KB)
en.m.wikipedia.org_wiki_Avocado_toast(Wiki Mobile) (1).png (320×568 px, 34 KB)

For reference, the CSS used to recreate the "Proposed" version is shared below (it may or may not be useful for production code):

.language-search-banner{
	background-color: var(--background-color-neutral-subtle);
}
.cx-entrypoint-missing-frequent-languages{
	width: 100%;
}

Event Timeline

Pginer-WMF triaged this task as Medium priority.

Change #1052257 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX missing frequent languages entrypoint banner: Fix styles

https://gerrit.wikimedia.org/r/1052257

Change #1052257 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX missing frequent languages entrypoint banner: Fix styles

https://gerrit.wikimedia.org/r/1052257

The fix has been deployed and the task can be closed as done.

Screenshot from en production wiki:

image.png (397×849 px, 52 KB)