Commit 92e4039a authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

OOBE Eula: Toggle checkbox on clicking the text

Bug: 750060
Change-Id: Ie27b75f03835c7cf64cedea5b06f34a441b33216
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1900994Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714462}
parent 9e236b06
......@@ -49,6 +49,10 @@ cr-toggle {
margin-inline-start: 16px;
}
#usageStatsLabel {
cursor: pointer;
}
#settings-close-button {
padding-inline-end: 18px;
}
......
......@@ -40,7 +40,8 @@
on-change="onUsageChanged_" aria-labelledby="usageStatsLabel">
</cr-toggle>
<div id="usageStatsLabelContainer">
<span id="usageStatsLabel" i18n-content="checkboxLogging"></span>
<span id="usageStatsLabel" i18n-content="checkboxLogging"
on-click="usageStatsLabelClicked_"></span>
<a id="learn-more" href="#" i18n-content="learnMore"
on-tap="onUsageStatsHelpLinkClicked_">
</a>
......
......@@ -200,4 +200,13 @@ Polymer({
isPasswordEmpty_: function(password) {
return password != null && password.length == 0;
},
/**
* Switches usage stats toggle state.
*
* @private
*/
usageStatsLabelClicked_: function() {
this.usageStatsChecked = !this.usageStatsChecked;
},
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment