New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 661357 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

Implement UI recommandation for dropdowns in Payment Request.

Project Member Reported by se...@chromium.org, Nov 1 2016

Issue description

They should follow these guidelines: go/list-dropdown


 
Owner: gogerald@chromium.org
Here are the screenshots, note that, I only padded for billing address dropdown (8dp top and bottom).
Screenshot_20161220-115513.png
173 KB View Download
Screenshot_20161220-115525.png
110 KB View Download
Screenshot_20161220-115534.png
169 KB View Download
Screenshot_20161220-115543.png
100 KB View Download
Cc: hwi@chromium.org rouslan@chromium.org
Labels: -M-56 OS-Android
hwi@: Please take a look at the UI.

Comment 5 by hwi@google.com, Dec 20 2016

LGTM - Thanks gogerald@!
FYI, screenshots on tablet,
Screenshot_20161220-182936.png
89.3 KB View Download
Screenshot_20161220-182949.png
71.1 KB View Download
Cc: ian...@chromium.org
+ianwen to see the table screenshots.
Find a problem when making the recommendation dropdown box match the width of the field according to the mocks. 

The selected text overlaps the arrow in the field (this could happen when the length of the recommendation is long enough without starting a new line), check the first screenshot. 

If we use default padding (do not set padding 0 explicitly), then there is no overlap, but the width of the dropdown box is not exactly match the width of the field (check the rest of the screenshots).

Personally, I think 'using default padding' is better,
Screenshot_20170104-105507.png
148 KB View Download
Screenshot_20170104-110744.png
190 KB View Download
Screenshot_20170104-110755.png
150 KB View Download
Screenshot_20170104-110813.png
178 KB View Download
Can you change the padding depending on whether the dropdown is open or closed?
Not sure that's the right thing to do. Use default padding on Spinner looks good to me, the user can see the triangle icon and know it is a dropdown field.

To make the dropdown width exactly match the width of the field, I could either pad Spinner according to dropdown status dynamically or the text. Padding the Spinner dynamically is tricky since there is no simple way to monitor the dropdown status. Padding the text is simple.

Below first screenshot is the result of padding 24dp at the end of the text. It shows the maximum length of the text can go in one line.
Screenshot_20170104-131911.png
148 KB View Download
Screenshot_20170104-131924.png
151 KB View Download
Screenshot_20170104-131930.png
188 KB View Download
Do your best and submit the patch for review.
Status: Fixed (was: Available)
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments

Sign in to add a comment