From f54b8097a9c45ed4ad308133d49f05325d6c5070 Mon Sep 17 00:00:00 2001 From: achuith Date: Fri, 15 May 2015 16:32:53 -0700 Subject: [PATCH] Add close button to the supervised user pages. BUG=487351 TEST=manual Review URL: https://codereview.chromium.org/1131683004 Cr-Commit-Position: refs/heads/master@{#330231} --- chrome/browser/resources/chromeos/login/header_bar.js | 3 ++- .../chromeos/login/screen_supervised_user_creation.css | 13 +++++++++++++ .../chromeos/login/screen_supervised_user_creation.html | 4 ++++ .../chromeos/login/screen_supervised_user_creation.js | 9 +++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/chrome/browser/resources/chromeos/login/header_bar.js b/chrome/browser/resources/chromeos/login/header_bar.js index 9cf78ad13118..20c551e519e7 100644 --- a/chrome/browser/resources/chromeos/login/header_bar.js +++ b/chrome/browser/resources/chromeos/login/header_bar.js @@ -352,7 +352,8 @@ cr.define('login', function() { accountPickerIsActive || !this.allowCancel_ || wrongHWIDWarningIsActive || - isMultiProfilesUI; + isMultiProfilesUI || + supervisedUserCreationDialogIsActive; $('guest-user-header-bar-item').hidden = (gaiaIsActive && !this.isNewGaiaFlow_) || supervisedUserCreationDialogIsActiveAndNotIntro || diff --git a/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.css b/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.css index 0db1542be527..30416a668c7d 100644 --- a/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.css +++ b/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.css @@ -549,3 +549,16 @@ html[dir=rtl] #supervised-user-creation-flip-photo { .camera.live:not(.online) .supervised-user-creation-image-stream-area .spinner { display: block; } + +#supervised-user-creation-close-button-item { + color: rgba(0, 0, 0, .54); + position: absolute; + right: 10px; + top: 10px; + z-index: 1; +} + +html[dir=rtl] #supervised-user-creation-close-button-item { + left: 10px; + right: auto; +} diff --git a/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html b/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html index 170b47386a45..8be6fc77ba77 100644 --- a/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html +++ b/chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html @@ -1,3 +1,4 @@ +