[MGNLUI-4162] Restyle combobox and its positioning Created: 15/Mar/17  Updated: 24/Jul/17  Resolved: 21/Jul/17

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5.6, 5.6

Type: Improvement Priority: Neutral
Reporter: Evzen Fochr Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 7d
Original Estimate: 3d

Attachments: PNG File Combobox in dialog footer.png    
Issue Links:
Relates
relates to MGNLPN-372 More subtle appearance of variant swi... Closed
relates to MGNLUI-3571 More subtle appearance of language sw... Closed
dependency
is depended upon by MGNLPN-391 Restyle combobox select variants and ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Sprint: Saigon 101, Saigon 102, Saigon 103, Saigon 104, Saigon 105
Story Points: 5

 Description   

We've discussed this in UX. Our main aim now is to avoid that a second combobox (or any other UI element) on the right jumps horizontally if the value in the combobox changes. This has been the main feedback so far, and it's perfectly valid, and it makes sense from a visual design standpoint as well. We also still want to keep the arrow next to the value so that it remains clear that that value can be changed.

One common solution in visual design - and the one we've settled with - is to give such elements a fixed, configurable width and visually anchor the element with faint separators on the left and the right - see part "A" in the explanations attached below. You'll also find a similar solution in the original design for selectors in the edit bar (see e.g. [^3-1 Visual design of selectors.png]). Part "B" lists the details on paddings, fonts and colors used.

The main design intent is:

  1. Every switcher in the dialog footer has a fixed width (minimum: 125px), which can be configured to be wider. We expect 125px for the language and 180px for the variant switcher to be good defaults.
  2. The width of the actual combobox (minimum: 120px) is independent of the width of the switcher. It should open above the value label - we've understood this is currently hard to achieve.
  3. Switchers are bordered by a 22px high and 1px wide separators on the left and the right*.
  4. The distance between the left separator and the value, between the value and the arrow is fixed (10 px or 15 px resp.). The distance between the arrow and the right separator is at least 10px.
  5. Values are truncated using an ellipsis ("...") in case they don't fit within the chosen width of the combobox.

Please let us know if you plan to adapt other instances of the combobox. We might want to slightly translate or adjust this design.


Generated at Mon Feb 12 09:13:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.