New issue
Advanced search Search tips

Issue 649815 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocking:
issue 630357
issue 650875



Sign in to add a comment

Harmony - Textfields should draw a soft focus ring

Project Member Reported by shrike@chromium.org, Sep 23 2016

Issue description

Currently textfields draw 1px borders instead of 1pt, and draw the focus state by stroking their border in a saturated blue.

Per the revised Harmony spec, the stroke should be 1pt, not 1px, and the focus ring should be a soft 2pt stroke.

bettes@ - in the spec the stroke sure looks like a rounded rect, but there's no corner radius specified anywhere. (I think the slightly rounded rect is a little friendlier.) Is the textfield border a hard rect or a slightly rounded rect?

 

Comment 1 by shrike@chromium.org, Sep 23 2016

Summary: Harmony - Textfields should have 1pt stroke, and draw a soft focus ring (was: Harmony - Textfields shoulve have 1pt stroke, and draw a soft focus ring)

Comment 2 by bettes@chromium.org, Sep 23 2016

Cc: -ellyjo...@chromium.org bettes@chromium.org
Owner: ellyjo...@chromium.org
Thanks for the correction! The rectangle corners are rounded. I've revised the spec to make this more clear:

border: 1pt (inside) #000 0.14a
corner radius: 2dp
focus ring: 2pt (outer), 0.4a #4285F4  // Same as buttons

https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20browser%20(MD)/Secondary%20UI%20Previews%20and%20specs%20(exports)#%2FSPEC-secondary-UI-06-dropdown-texfields.png%3Fz=width
Screen Shot 2016-09-23 at 4.02.00 PM.png
115 KB View Download

Comment 3 by shrike@chromium.org, Sep 27 2016

Owner: est...@chromium.org

Comment 4 by shrike@chromium.org, Sep 27 2016

Blocking: 650875

Comment 5 by est...@chromium.org, Sep 28 2016

I don't even know what "pt" means in this context. It's different from px and dp?

Why are textfields different from buttons (as well as basically all other strokes, i.e. separators, borders, tab outlines, etc) which are stroked at 1px?

Comment 6 by est...@chromium.org, Sep 28 2016

also I'm pretty sure the layout margins which are specified in px should be specified in dp.

Comment 7 by est...@chromium.org, Sep 28 2016

bettes@ just told me via chat that he uses "pt" interchangeably with "px"

Comment 8 Deleted

Comment 9 by bettes@chromium.org, Sep 29 2016

For posterity, all scalable objects are noted as "pt" and non-scalable objects are in "px". I mis-spoke and so the following is true: 

border: 1px (inside) #000 0.14a
corner radius: 2pt
focus ring: 2pt (outer), 0.4a #4285F4  // Same as buttons
I think the corner radius needs to be 2pt, not 2px? A 10px radius circle at 2x is 1/4 its size at 1x.
Summary: Harmony - Textfields should draw a soft focus ring (was: Harmony - Textfields should have 1pt stroke, and draw a soft focus ring)
Nevermind - it's exactly what it needs to be.
Owner: shrike@chromium.org
Labels: -M-55 Proj-HarmonyControls M-56
Owner: est...@chromium.org
Status: Started (was: Assigned)
I started on this last week --- https://codereview.chromium.org/2380303004/

Please ping me before taking bug ownership.
What is the ETA?
It's notoriously difficult to predict how long code reviews might take, so I can't give you a good ETA. Why do you ask?
Status: Fixed (was: Started)

Sign in to add a comment