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

Issue 872098 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
no longer active
Closed: Aug 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

[PIP] Update close button style.

Project Member Reported by apaci...@chromium.org, Aug 8

Issue description

The close button style should be updated to be:
- Icon is white
- Default status, there should be no background
- On hover status, there is a grey circular background.
 
Cc: apaci...@chromium.org
 Issue 872602  has been merged into this issue.
Project Member

Comment 2 by bugdroid1@chromium.org, Aug 10

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

commit 3a1ad4a1cde048138003b8cc01cf75fba8b9e58c
Author: Jennifer Apacible <apacible@chromium.org>
Date: Fri Aug 10 18:50:30 2018

[Picture in Picture] Update close button style.

This change updates the close button style. The color of the 'x' is now
white. There is no background unless the user hovers over the icon. In
this case, there is a grey circular background.

As part of this change, CloseIconButton is created to account for the
hover behavior.

Bug:  872098 
Change-Id: I90a53c5e42d6377db4ee45b47633689315865c18
Reviewed-on: https://chromium-review.googlesource.com/1168732
Commit-Queue: apacible <apacible@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582271}
[modify] https://crrev.com/3a1ad4a1cde048138003b8cc01cf75fba8b9e58c/chrome/browser/ui/BUILD.gn
[add] https://crrev.com/3a1ad4a1cde048138003b8cc01cf75fba8b9e58c/chrome/browser/ui/views/overlay/close_image_button.cc
[add] https://crrev.com/3a1ad4a1cde048138003b8cc01cf75fba8b9e58c/chrome/browser/ui/views/overlay/close_image_button.h
[modify] https://crrev.com/3a1ad4a1cde048138003b8cc01cf75fba8b9e58c/chrome/browser/ui/views/overlay/overlay_window_views.cc
[modify] https://crrev.com/3a1ad4a1cde048138003b8cc01cf75fba8b9e58c/chrome/browser/ui/views/overlay/overlay_window_views.h

Cc: -apaci...@chromium.org
Status: Fixed (was: Started)
Labels: TE-Verified-M70 TE-Verified-70.0.3521.0
Able to reproduce this issue on build without fix, hence verifying the fix on latest canary 70.0.3521.0 using Mac 10.13.6, Windows 10 and Debian.

Now close icon is white, there is no background unless the user hovers over the icon.Upon hover, there is a grey circular background. Attaching screencast for reference.

As fix is working as expected adding Verified labels.

Thanks!
Withfix_Close icon.webm
2.1 MB View Download
Cc: mlamouri@chromium.org
Labels: Merge-Request-69
Requesting Merge to 69 as it's a UI polish requested by UX team. It should only impact the feature which is guarded by a Finch flag.
Project Member

Comment 6 by sheriffbot@chromium.org, Aug 13

Labels: -Merge-Request-69 Merge-Review-69 Hotlist-Merge-Review
This bug requires manual review: M69 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-69 Merge-Approved-69
Approving merge to M69 branch 3497 based on comment #4 and #5. 
Project Member

Comment 8 by bugdroid1@chromium.org, Aug 13

Labels: -merge-approved-69 merge-merged-3497
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fb252a5db909382866067e13e8da532d9ec183c1

commit fb252a5db909382866067e13e8da532d9ec183c1
Author: Jennifer Apacible <apacible@chromium.org>
Date: Mon Aug 13 20:40:18 2018

[Picture in Picture] Update close button style.

This change updates the close button style. The color of the 'x' is now
white. There is no background unless the user hovers over the icon. In
this case, there is a grey circular background.

As part of this change, CloseIconButton is created to account for the
hover behavior.

Bug:  872098 
Change-Id: I90a53c5e42d6377db4ee45b47633689315865c18
Reviewed-on: https://chromium-review.googlesource.com/1168732
Commit-Queue: apacible <apacible@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#582271}(cherry picked from commit 3a1ad4a1cde048138003b8cc01cf75fba8b9e58c)
Reviewed-on: https://chromium-review.googlesource.com/1173079
Cr-Commit-Position: refs/branch-heads/3497@{#588}
Cr-Branched-From: 271eaf50594eb818c9295dc78d364aea18c82ea8-refs/heads/master@{#576753}
[modify] https://crrev.com/fb252a5db909382866067e13e8da532d9ec183c1/chrome/browser/ui/BUILD.gn
[add] https://crrev.com/fb252a5db909382866067e13e8da532d9ec183c1/chrome/browser/ui/views/overlay/close_image_button.cc
[add] https://crrev.com/fb252a5db909382866067e13e8da532d9ec183c1/chrome/browser/ui/views/overlay/close_image_button.h
[modify] https://crrev.com/fb252a5db909382866067e13e8da532d9ec183c1/chrome/browser/ui/views/overlay/overlay_window_views.cc
[modify] https://crrev.com/fb252a5db909382866067e13e8da532d9ec183c1/chrome/browser/ui/views/overlay/overlay_window_views.h

Labels: TE-Verified-M69 TE-Verified-69.0.3497.42
Able to reproduce this issue on build without fix, hence verifying the fix on latest beta 69.0.3497.42 using Mac 10.13.6, Windows 10 and Debian.

Now close icon is white, there is no background unless the user hovers over the icon.Upon hover, there is a grey circular background. Attaching screencast for reference.

As fix is working as expected adding Verified labels.

Thanks!
M69_withfix_closeicon.webm
1.2 MB View Download

Sign in to add a comment