Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2870)

Unified Diff: chrome/browser/resources/settings/people_page/lock_screen.js

Issue 2823713002: md settings: Change action link to button on lock screen. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/people_page/lock_screen.js
diff --git a/chrome/browser/resources/settings/people_page/lock_screen.js b/chrome/browser/resources/settings/people_page/lock_screen.js
index af59d8db8e8ac6dc893031c006d2c79402bfc3ef..0b7435ee6872ea378192a6c18c44602b578d3cf7 100644
--- a/chrome/browser/resources/settings/people_page/lock_screen.js
+++ b/chrome/browser/resources/settings/people_page/lock_screen.js
@@ -151,6 +151,16 @@ Polymer({
this.easyUnlockBrowserProxy_.getEnabledStatus().then(
this.handleEasyUnlockEnabledStatusChanged_.bind(this));
}
+
+ // PaperRadioButton's content area's width is only as long as the text in
+ // it's content, but we want the set up link to be on the rightmost of the
+ // box, so modify the css of the PaperRadioButton's content parent.
+ var radioButtons = this.shadowRoot.querySelectorAll('paper-radio-button');
+ radioButtons.forEach(function(radioButton) {
+ var radioLabel = radioButton.shadowRoot.querySelector('#radioLabel');
Dan Beam 2017/04/17 21:58:36 nah, don't do this
+ radioLabel.style.display = 'flex';
+ radioLabel.style.width = '100%';
+ });
sammiequon 2017/04/14 23:43:52 Steven, since this is similar to https://coderevie
stevenjb 2017/04/17 17:18:20 You are correct in that I would really prefer to a
},
/**
@@ -218,7 +228,7 @@ Polymer({
/** @private */
onSetupPinClosed_: function() {
- this.$$('#setupPinLink').focus();
+ this.$$('#setupPinButton').focus();
},
/**

Powered by Google App Engine
This is Rietveld 408576698