|
|
Chromium Code Reviews|
Created:
5 years, 7 months ago by achuithb Modified:
3 years, 3 months ago CC:
chromium-reviews, nkostylev+watch_chromium.org, dzhioev+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd close button to the supervised user pages.
BUG=487351
TEST=manual
Committed: https://crrev.com/f54b8097a9c45ed4ad308133d49f05325d6c5070
Cr-Commit-Position: refs/heads/master@{#330231}
Patch Set 1 #Patch Set 2 : . #
Total comments: 2
Patch Set 3 : Pavel feedback, and rebase #
Total comments: 2
Patch Set 4 : linebreak closing tag #
Messages
Total messages: 29 (12 generated)
achuith@chromium.org changed reviewers: + antrim@chromium.org
Denis, do you have any idea why this code doesn't work?
I can confirm that the event handler is correct. In the debug console, if I do
$('close-button-item').click(), it executes correctly, but if I physically click
on the button, the event does not propagate to the event handler.
I'm guessing there's some polymer voodoo that's stealing the event.
Patchset #2 (id:20001) has been deleted
achuith@chromium.org changed reviewers: + dzhioev@chromium.org
ok, this should be working now. Please review.
The CQ bit was checked by achuith@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131683004/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Hello, 1. I believe your chromium checkout is outdated. I removed IDR_LOGIN_CLOSE_BUTTTON_* from repository recently, as it is not needed anymore. You should use <button is="gaia-icon-button" icon="close"></button> (see such button on GAIA screen https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/res... ) "gaia-icon-button" encapsulates all needed CSS styles for focused, active and hover states. So you only need to position it and set a color (with "color" CSS property). Correct color for dark background is 'white', for white background -- rgba(0, 0, 0, .54). 2. I think we should hide the button on the last step of flow. This can be done in setVisiblePage_ method.
https://codereview.chromium.org/1131683004/diff/40001/chrome/browser/resource... File chrome/browser/resources/chromeos/login/screen_supervised_user_creation.js (right): https://codereview.chromium.org/1131683004/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/login/screen_supervised_user_creation.js:622: e.preventDefault(); This trick is not needed for "gaia-icon-button" as well
lgtm nit: see dzhioev@ comment.
Patchset #3 (id:60001) has been deleted
Patchset #3 (id:80001) has been deleted
PTAL Pavel, I've addressed your comments. https://codereview.chromium.org/1131683004/diff/40001/chrome/browser/resource... File chrome/browser/resources/chromeos/login/screen_supervised_user_creation.js (right): https://codereview.chromium.org/1131683004/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/login/screen_supervised_user_creation.js:622: e.preventDefault(); On 2015/05/15 02:35:20, dzhioev wrote: > This trick is not needed for "gaia-icon-button" as well Done.
On 2015/05/15 02:35:09, dzhioev wrote: > Hello, > 1. I believe your chromium checkout is outdated. > I removed IDR_LOGIN_CLOSE_BUTTTON_* from repository recently, as it is not > needed anymore. > You should use <button is="gaia-icon-button" icon="close"></button> (see such > button on GAIA screen > https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/res... > ) > "gaia-icon-button" encapsulates all needed CSS styles for focused, active and > hover states. So you only need to position it and set a color (with "color" CSS > property). > Correct color for dark background is 'white', for white background -- rgba(0, 0, > 0, .54). Done > 2. I think we should hide the button on the last step of flow. This can be done > in setVisiblePage_ method. Done
The CQ bit was checked by achuith@chromium.org to run a CQ dry run
The patchset sent to the CQ was uploaded after l-g-t-m from antrim@chromium.org Link to the patchset: https://codereview.chromium.org/1131683004/#ps90001 (title: "Pavel feedback, and rebase")
Please excuse the rebase
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131683004/90001
LGTM with nit https://codereview.chromium.org/1131683004/diff/90001/chrome/browser/resource... File chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html (right): https://codereview.chromium.org/1131683004/diff/90001/chrome/browser/resource... chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html:162: icon="close" i18n-values="aria-label:closeButton" tabindex="0"></button> nit: put </button> on a new line. From style guide: "If you linebreak after an opening tag you must linebreak before the closing tag."
Thanks! https://codereview.chromium.org/1131683004/diff/90001/chrome/browser/resource... File chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html (right): https://codereview.chromium.org/1131683004/diff/90001/chrome/browser/resource... chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html:162: icon="close" i18n-values="aria-label:closeButton" tabindex="0"></button> On 2015/05/15 22:22:43, dzhioev wrote: > nit: > put </button> on a new line. From style guide: "If you linebreak after an > opening tag you must linebreak before the closing tag." Done.
The CQ bit was checked by achuith@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from antrim@chromium.org, dzhioev@chromium.org Link to the patchset: https://codereview.chromium.org/1131683004/#ps100001 (title: "linebreak closing tag")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131683004/100001
Message was sent while issue was closed.
Committed patchset #4 (id:100001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/f54b8097a9c45ed4ad308133d49f05325d6c5070 Cr-Commit-Position: refs/heads/master@{#330231}
Message was sent while issue was closed.
soko.boss75@gmail.com changed reviewers: + soko.boss75@gmail.com
Message was sent while issue was closed.
lgtm |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
