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

Issue 591140 link

Starred by 11 users

Issue metadata

Status: Duplicate
Merged: issue 588377
Owner:
Last visit > 30 days ago
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Feature
Team-Accessibility

Blocked on:
issue 608976

Blocking:
issue 495654
issue 532707



Sign in to add a comment

Location bar child views should have visible hover/focus/press states

Project Member Reported by dmazz...@chromium.org, Mar 1 2016

Issue description

Version: 51.0.2664.0
OS: Linux

What steps will reproduce the problem?
1. Run Chrome with --top-chrome-md=material
2. Focus the toolbar with Alt+Shift+T, press Tab to cycle through controls.

Material Design specifically defines a focus style, and we should use it. Typically it's just a darker background, so it should be pretty easy to implement.

In many cases the focused state can be the same as the pressed state. Examples from the spec here:

https://www.google.com/design/spec/components/buttons.html#buttons-toggle-buttons

 
Labels: Needs-Feedback
Owner: sgabr...@chromium.org
Status: Assigned (was: Untriaged)
Sebastien, can you comment on what this focus style should look like in top chrome MD?
Let's use the hover states for the focus states.

For the omnibox, let's set the focus state to a 2pt outer stroke rather than the inner dotted text-filed bound thing we currently have. Spec attached.
P - Chrome Cros - 200 - normal + incognito - Core ui focus .png
98.8 KB View Download
Labels: -Type-Bug -Needs-Feedback Type-Feature
Owner: ----
Status: Available (was: Assigned)
Cc: bruthig@chromium.org sgabr...@chromium.org
 Issue 596756  has been merged into this issue.
Blocking: 532707 495654
Labels: M-53
Cc: palmer@chromium.org
 Issue 599642  has been merged into this issue.

Comment 7 by est...@chromium.org, May 19 2016

Owner: est...@chromium.org
Status: Assigned (was: Available)

Comment 8 by est...@chromium.org, May 20 2016

Sebastien: Peter wants me to make sure you want the focus border to be thicker than the unfocused border (at 2x). Is this intentional?
Yes it's intended to pop-out. The regular border being a constant 1px, a bit too thin for a focus state. 

Comment 10 Deleted

Cool, thanks.

> Let's use the hover states for the focus states.

Currently the find bar buttons have focus states, but they're blue round rect outlines. Should those all change to the hover state?
Project Member

Comment 12 by bugdroid1@chromium.org, May 21 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/333ac64c2e01fce66aa363da999dbcffa9724343

commit 333ac64c2e01fce66aa363da999dbcffa9724343
Author: estade <estade@chromium.org>
Date: Sat May 21 00:13:24 2016

Update appearance of omnibox focus for MD.

Also remove some dead focus painter code in TextField.
Also remove OmniboxEditController::OnSetFocus(), which was totally dead on Views and not necessary on Cocoa.

BUG= 591140 

Review-Url: https://codereview.chromium.org/2001433002
Cr-Commit-Position: refs/heads/master@{#395213}

[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/location_bar/background_with_1_px_border.h
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/location_bar/location_bar_view.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/location_bar/location_bar_view.h
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/components/omnibox/browser/omnibox_edit_controller.h
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/components/omnibox/browser/omnibox_edit_unittest.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ios/chrome/browser/ui/omnibox/web_omnibox_edit_controller.h
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ui/app_list/views/folder_header_view.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ui/native_theme/common_theme.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ui/native_theme/native_theme_dark_aura.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ui/views/controls/textfield/textfield.cc
[modify] https://crrev.com/333ac64c2e01fce66aa363da999dbcffa9724343/ui/views/controls/textfield/textfield.h

sgabriel, dmazzoni: What do you think should happen and how much do you care what happens in the following scenario:

a) user tabs to some button
b) user mouses over same button, then mouses out of the button
In this case nothing should happen, tabbing takes priority over hover. imo
uhh not really. Will add comment on other bug.
Project Member

Comment 17 by bugdroid1@chromium.org, May 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/43b34ce93a59b52dfb0f5c125a12d66b299c36d3

commit 43b34ce93a59b52dfb0f5c125a12d66b299c36d3
Author: estade <estade@chromium.org>
Date: Fri May 27 00:30:39 2016

Use ink drop hover for focus states on buttons. Remove the dashed border.

Only button-style buttons (i.e. MdTextButton) retain the blue ring for focus, as per sgabriel's orders.

BUG= 591140 

Review-Url: https://codereview.chromium.org/2001843002
Cr-Commit-Position: refs/heads/master@{#396328}

[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ash/system/toast/toast_overlay.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/bar_control_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/bar_control_button.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/download/download_item_view_md.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/location_bar/bubble_icon_view.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/app_menu_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/app_menu_button.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/toolbar_action_view.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/toolbar_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/chrome/browser/ui/views/toolbar/toolbar_button.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/button_ink_drop_delegate.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/button_ink_drop_delegate.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_delegate.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_factory.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_host_view.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_host_view.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_impl.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_impl.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/ink_drop_impl_unittest.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/test/test_ink_drop_delegate.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/animation/test/test_ink_drop_delegate.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/blue_button_unittest.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/custom_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/custom_button.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/custom_button_unittest.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/label_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/label_button_unittest.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/md_text_button.cc
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/md_text_button.h
[modify] https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3/ui/views/controls/button/menu_button_unittest.cc

Project Member

Comment 18 by bugdroid1@chromium.org, May 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/de354e47c0ee02b889343db624b1996df7322c2f

commit de354e47c0ee02b889343db624b1996df7322c2f
Author: estade <estade@chromium.org>
Date: Fri May 27 21:52:59 2016

MD links - underline to indicate focus.

As discussed with sgabriel@; this is somewhat exploratory. We can't
reuse the bold treatment that polymer uses as many fonts change width
when emboldened.

BUG= 571500 , 591140 

Review-Url: https://codereview.chromium.org/2023453002
Cr-Commit-Position: refs/heads/master@{#396574}

[modify] https://crrev.com/de354e47c0ee02b889343db624b1996df7322c2f/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
[modify] https://crrev.com/de354e47c0ee02b889343db624b1996df7322c2f/ui/views/controls/label.cc
[modify] https://crrev.com/de354e47c0ee02b889343db624b1996df7322c2f/ui/views/controls/link.cc

Cc: est...@chromium.org tdander...@chromium.org pkasting@chromium.org
 Issue 622038  has been merged into this issue.
Sebastien, the content settings icons and bookmark star don't have a hover effect and they still use dashed rect for focus. Should they get a hover state? Should focus be updated?

Also  bug 608976  is closely related (it covers hover, press, focus, etc. for location icon)
Bookmark star uses the "ink hover" state for focus and press, it just doesn't use it for hover.  Seems inconsistent.

It looks nice in the focused/pressed state, so I can't think why we'd want to stick with the current no hover/dashed focus rect state for any of the location bar views...
From today's meeting, the current direction is to use the same sort of hover/focus/pressed style on items within the location bar as on items in the rest of the toolbar (the grey roundrect).

This bug is nominally about focus right now, should this be morphed to "update hover/focus/pressed state for location bar child views"?  Or should we file a new bug for that?

Leaving  bug 608976  about the location icon since that's a trickier case.
#22. I think this is still in line with the designer's comment #2 so reusing this bug should be fine (what remains of it).
Summary: Location bar child views should have visible hover/focus/press states matching toolbar buttons (was: Material Design Views should have focus styles)
Morphing then.
Project Member

Comment 25 by bugdroid1@chromium.org, Jun 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fc47fab1198649e7e3c7e447db6453ae7f2ba612

commit fc47fab1198649e7e3c7e447db6453ae7f2ba612
Author: estade <estade@chromium.org>
Date: Thu Jun 30 14:23:07 2016

Add ink drop highlight for hover and focus on location icons (e.g. star,
zoom, translate, passwords) and content settings icon.

This doesn't do anything for other icon label bubble views (like the
location icon). Some of the code in ContentSettingImageView should
probably be moved into IconLabelBubbleView for that. Also, there's no
hover or focus effect when the label is showing (e.g. when Chrome first
blocks a popup and there's text next to the icon). Since it remains
unclear to me how the hover and press effects should look in this
scenario, limit the ink drop to when only the icon is visible.

BUG= 591140 

Review-Url: https://codereview.chromium.org/2098643002
Cr-Commit-Position: refs/heads/master@{#403170}

[modify] https://crrev.com/fc47fab1198649e7e3c7e447db6453ae7f2ba612/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
[modify] https://crrev.com/fc47fab1198649e7e3c7e447db6453ae7f2ba612/chrome/browser/ui/views/location_bar/bubble_icon_view.h
[modify] https://crrev.com/fc47fab1198649e7e3c7e447db6453ae7f2ba612/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
[modify] https://crrev.com/fc47fab1198649e7e3c7e447db6453ae7f2ba612/chrome/browser/ui/views/location_bar/content_setting_image_view.h
[modify] https://crrev.com/fc47fab1198649e7e3c7e447db6453ae7f2ba612/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc

Labels: M-54
Labels: -M-53
remaining work retargeted to m54
Is bug 590285 comment 27 problem 2 covered by this bug or another bug that you own?  I'm not sure if we have a catchall bug for moving away from the dashed rect focus state in all places it's currently used.
That dashed rect is in secondary UI which has not yet been MD-ified, so it is still correct. Getting rid of all dashed rects is covered by Harmony, but in this case we probably just change that x view to a BarControlButton (yes, bad name) and get the improved focus state as a corollary.

Comment 30 by jleedev@gmail.com, Aug 4 2016

Does this bug also cover the lock icon? It currently has no visible focus state.
Blockedon: 608976
lock icon is more complicated because it has the EV/verbose state. That's tracked by  crbug.com/608976 
Cc: -palmer@chromium.org
After discussing options via mail, please find the final spec in:
Chrome UX specs and sources > Chrome Omnibox & Security > Non-Touch (https://drive.google.com/file/d/0B6Wxmj9LZL6XOEhOMjlybGd6QkE/view).

Summary: 
- Button state: covers icon/chip including text label and divider to avoid mismatch between click/hover- and highlighted area
- Ripple: all icons/chips inside omnibox have bounded ripples, toolbar buttons outside omnibox use unbounded
- Mac specifics: no ripple, blue focus ring, darker active state (for differentiation to hover state), add hover/active/focus states to all omnibox icons
Owner: shrike@chromium.org
Summary: Location bar child views should have visible hover/focus/press states (was: Location bar child views should have visible hover/focus/press states matching toolbar buttons)
over to shrike for triage
Cc: shrike@chromium.org
Labels: Proj-NativeMacMD
Owner: spqc...@chromium.org
Labels: OS-Mac
Mergedinto: 588377
Status: Duplicate (was: Assigned)

Sign in to add a comment