Commit 2c081c3c authored by John Lee's avatar John Lee Committed by Commit Bot

WebUI: Replace settings-box with cr-row, part 2

This CL continues the work to use cr-row on all pages. This CL attempts
to also make pages look a bit more consistent by replacing one-off
styles with existing classes, and removes extraneous use of
settings-box.

Bug: 973674
Change-Id: I1a4fa82b5a8dbfaf06a4fad79fb279ab5b9b2b7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148280Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758968}
parent 76af5ab9
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html"> <link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toast/cr_toast_manager.html"> <link rel="import" href="chrome://resources/cr_elements/cr_toast/cr_toast_manager.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html"> <link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-announcer/iron-a11y-announcer.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-announcer/iron-a11y-announcer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
<link rel="import" href="../controls/extension_controlled_indicator.html"> <link rel="import" href="../controls/extension_controlled_indicator.html">
<link rel="import" href="../controls/settings_toggle_button.html"> <link rel="import" href="../controls/settings_toggle_button.html">
...@@ -40,7 +42,7 @@ ...@@ -40,7 +42,7 @@
<dom-module id="passwords-section"> <dom-module id="passwords-section">
<template> <template>
<style include="settings-shared passwords-shared"> <style include="cr-shared-style settings-shared iron-flex passwords-shared">
#savedPasswordsHeaders { #savedPasswordsHeaders {
/* This adds enough padding so that the labels are aligned with the /* This adds enough padding so that the labels are aligned with the
* columns. It is necessary due to the absence of the "more actions" * columns. It is necessary due to the absence of the "more actions"
...@@ -102,8 +104,8 @@ ...@@ -102,8 +104,8 @@
</settings-toggle-button> </settings-toggle-button>
<template is="dom-if" <template is="dom-if"
if="[[prefs.credentials_enable_service.extensionId]]"> if="[[prefs.credentials_enable_service.extensionId]]">
<div class="settings-box continuation"> <div class="cr-row continuation">
<extension-controlled-indicator class="start" <extension-controlled-indicator class="flex"
id="passwordsExtensionIndicator" id="passwordsExtensionIndicator"
extension-id="[[prefs.credentials_enable_service.extensionId]]" extension-id="[[prefs.credentials_enable_service.extensionId]]"
extension-name="[[ extension-name="[[
...@@ -119,7 +121,7 @@ ...@@ -119,7 +121,7 @@
sub-label="$i18n{passwordsAutosigninDescription}"> sub-label="$i18n{passwordsAutosigninDescription}">
</settings-toggle-button> </settings-toggle-button>
<template is="dom-if" if="[[enablePasswordCheck_]]"> <template is="dom-if" if="[[enablePasswordCheck_]]">
<div id="checkPasswordsBannerContainer" class="settings-box" <div id="checkPasswordsBannerContainer" class="cr-row"
hidden$="[[!shouldShowBanner_]]"> hidden$="[[!shouldShowBanner_]]">
<picture> <picture>
<source <source
...@@ -129,9 +131,9 @@ ...@@ -129,9 +131,9 @@
src="chrome://settings/images/password_check_neutral.svg"> src="chrome://settings/images/password_check_neutral.svg">
</picture> </picture>
</div> </div>
<div id="checkPasswordsButtonRow" class="settings-box continuation" <div id="checkPasswordsButtonRow" class="cr-row continuation"
hidden$="[[!shouldShowBanner_]]"> hidden$="[[!shouldShowBanner_]]">
<div class="start settings-box-text"> <div class="flex cr-padded-text">
<div>$i18n{checkPasswords}</div> <div>$i18n{checkPasswords}</div>
<div class="secondary">$i18n{checkPasswordsDescription}</div> <div class="secondary">$i18n{checkPasswordsDescription}</div>
</div> </div>
...@@ -140,12 +142,12 @@ ...@@ -140,12 +142,12 @@
$i18n{checkPasswords} $i18n{checkPasswords}
</cr-button> </cr-button>
</div> </div>
<div class="settings-box two-line" id="checkPasswordsLinkRow" <div class="cr-row" id="checkPasswordsLinkRow"
on-click="onCheckPasswordsClick_" actionable on-click="onCheckPasswordsClick_" actionable
hidden$="[[shouldShowBanner_]]"> hidden$="[[shouldShowBanner_]]">
<iron-icon icon="cr:warning" id="checkPasswordWarningIcon" <iron-icon icon="cr:warning" id="checkPasswordWarningIcon"
hidden$="[[!hasLeakedCredentials_]]"></iron-icon> hidden$="[[!hasLeakedCredentials_]]"></iron-icon>
<div class="start settings-box-text"> <div class="flex cr-padded-text">
<div> <div>
$i18n{checkPasswords} $i18n{checkPasswords}
</div> </div>
...@@ -162,10 +164,10 @@ ...@@ -162,10 +164,10 @@
</cr-icon-button> </cr-icon-button>
</div> </div>
</template> </template>
<div id="manageLink" class="settings-box two-line" <div id="manageLink" class="cr-row two-line"
hidden$="[[hidePasswordsLink_]]"> hidden$="[[hidePasswordsLink_]]">
<!-- This span lays out the url correctly, relative to the label. --> <!-- This div lays out the link correctly, relative to the text. -->
<span>$i18nRaw{managePasswordsLabel}</span> <div class="cr-padded-text">$i18nRaw{managePasswordsLabel}</div>
</div> </div>
<template is="dom-if" if="[[enableAccountStorage_]]"> <template is="dom-if" if="[[enableAccountStorage_]]">
<cr-button on-click="onOptIn_" <cr-button on-click="onOptIn_"
...@@ -177,14 +179,15 @@ ...@@ -177,14 +179,15 @@
$i18n{optOutAccountStorageLabel} $i18n{optOutAccountStorageLabel}
</cr-button> </cr-button>
</template> </template>
<div class="settings-box first"> <div class="cr-row first">
<h2 id="savedPasswordsHeading" class="start"> <h2 id="savedPasswordsHeading" class="flex">
$i18n{savedPasswordsHeading} $i18n{savedPasswordsHeading}
</h2> </h2>
<template is="dom-if" <template is="dom-if"
if="[[showImportOrExportPasswords_( if="[[showImportOrExportPasswords_(
showExportPasswords_, showImportPasswords_)]]"> showExportPasswords_, showImportPasswords_)]]">
<cr-icon-button class="icon-more-vert" id="exportImportMenuButton" <cr-icon-button class="icon-more-vert header-aligned-button"
id="exportImportMenuButton"
on-click="onImportExportMenuTap_" title="$i18n{moreActions}" on-click="onImportExportMenuTap_" title="$i18n{moreActions}"
focus-type="exportImportMenuButton" focus-type="exportImportMenuButton"
aria-describedby="savedPasswordsHeading"></cr-icon-button> aria-describedby="savedPasswordsHeading"></cr-icon-button>
...@@ -275,8 +278,8 @@ ...@@ -275,8 +278,8 @@
on-click="onUndoButtonClick_">$i18n{undoRemovePassword}</cr-button> on-click="onUndoButtonClick_">$i18n{undoRemovePassword}</cr-button>
</cr-toast-manager> </cr-toast-manager>
<div class="settings-box block first"> <div class="cr-row first">
<h2>$i18n{passwordExceptionsHeading}</h2> <h2 class="flex">$i18n{passwordExceptionsHeading}</h2>
</div> </div>
<div class="list-frame vertical-list" id="passwordExceptionsList"> <div class="list-frame vertical-list" id="passwordExceptionsList">
<template is="dom-repeat" items="[[passwordExceptions]]" <template is="dom-repeat" items="[[passwordExceptions]]"
......
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html"> <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html"> <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html"> <link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
<link rel="import" href="../metrics_browser_proxy.html"> <link rel="import" href="../metrics_browser_proxy.html">
<link rel="import" href="../settings_shared_css.html"> <link rel="import" href="../settings_shared_css.html">
...@@ -23,7 +25,7 @@ ...@@ -23,7 +25,7 @@
<dom-module id="settings-payments-section"> <dom-module id="settings-payments-section">
<template> <template>
<style include="settings-shared passwords-shared"> <style include="cr-shared-style settings-shared iron-flex passwords-shared">
.expiration-column { .expiration-column {
align-items: center; align-items: center;
display: flex; display: flex;
...@@ -68,8 +70,8 @@ ...@@ -68,8 +70,8 @@
</template> </template>
<template is="dom-if" <template is="dom-if"
if="[[prefs.autofill.credit_card_enabled.extensionId]]"> if="[[prefs.autofill.credit_card_enabled.extensionId]]">
<div class="settings-box continuation"> <div class="cr-row continuation">
<extension-controlled-indicator class="start" <extension-controlled-indicator class="flex"
id="autofillExtensionIndicator" id="autofillExtensionIndicator"
extension-id="[[prefs.autofill.credit_card_enabled.extensionId]]" extension-id="[[prefs.autofill.credit_card_enabled.extensionId]]"
extension-name="[[ extension-name="[[
...@@ -80,13 +82,13 @@ ...@@ -80,13 +82,13 @@
</div> </div>
</template> </template>
<div id="manageLink" class="settings-box first"> <div id="manageLink" class="cr-row first">
<!-- This span lays out the URL correctly, relative to the label. --> <!-- This span lays out the link correctly, relative to the text. -->
<span>$i18nRaw{manageCreditCardsLabel}</span> <div class="cr-padded-text">$i18nRaw{manageCreditCardsLabel}</div>
</div> </div>
<div class="settings-box continuation"> <div class="cr-row continuation">
<h2 class="start">$i18n{creditCards}</h2> <h2 class="flex">$i18n{creditCards}</h2>
<cr-button id="addCreditCard" class="header-aligned-button" <cr-button id="addCreditCard" class="header-aligned-button"
on-click="onAddCreditCardTap_" on-click="onAddCreditCardTap_"
hidden$="[[!prefs.autofill.credit_card_enabled.value]]"> hidden$="[[!prefs.autofill.credit_card_enabled.value]]">
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html"> <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html"> <link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="../appearance_page/appearance_page.html"> <link rel="import" href="../appearance_page/appearance_page.html">
<link rel="import" href="../privacy_page/privacy_page.html"> <link rel="import" href="../privacy_page/privacy_page.html">
<link rel="import" href="../safety_check_page/safety_check_page.html"> <link rel="import" href="../safety_check_page/safety_check_page.html">
...@@ -35,7 +37,7 @@ ...@@ -35,7 +37,7 @@
includes both the basic and advanced settings. --> includes both the basic and advanced settings. -->
<dom-module id="settings-basic-page"> <dom-module id="settings-basic-page">
<template> <template>
<style include="settings-page-styles cr-hidden-style settings-shared"> <style include="cr-shared-style settings-page-styles cr-hidden-style iron-flex settings-shared">
:host([is-subpage-animating]) { :host([is-subpage-animating]) {
/* Prevent an unwanted horizontal scrollbar when transitioning back from /* Prevent an unwanted horizontal scrollbar when transitioning back from
* a sub-page. */ * a sub-page. */
...@@ -62,11 +64,9 @@ ...@@ -62,11 +64,9 @@
} }
#osSettingsBanner { #osSettingsBanner {
align-items: center; background-color: var(--cr-card-background-color);
background-color: white; border-radius: var(--cr-card-border-radius);
border-radius: 2px;
box-shadow: var(--cr-card-shadow); box-shadow: var(--cr-card-shadow);
display: flex;
margin-top: 21px; margin-top: 21px;
} }
...@@ -99,8 +99,9 @@ ...@@ -99,8 +99,9 @@
</template> </template>
<if expr="chromeos"> <if expr="chromeos">
<template is="dom-if" if="[[showOSSettingsBanner_]]"> <template is="dom-if" if="[[showOSSettingsBanner_]]">
<div id="osSettingsBanner" class="settings-box"> <div id="osSettingsBanner" class="cr-row">
<div class="start" on-click="onOSSettingsBannerClick_"> <div class="flex cr-padded-text"
on-click="onOSSettingsBannerClick_">
$i18nRaw{osSettingsBannerText} $i18nRaw{osSettingsBannerText}
</div> </div>
<cr-icon-button class="icon-clear" <cr-icon-button class="icon-clear"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<link rel="import" href="ambient_mode_browser_proxy.html"> <link rel="import" href="ambient_mode_browser_proxy.html">
<link rel="import" href="chrome://resources/cr_elements/cr_radio_button/cr_radio_button.html"> <link rel="import" href="chrome://resources/cr_elements/cr_radio_button/cr_radio_button.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="../../controls/settings_radio_group.html"> <link rel="import" href="../../controls/settings_radio_group.html">
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
<dom-module id="settings-ambient-mode-page"> <dom-module id="settings-ambient-mode-page">
<template> <template>
<style include="settings-shared"> <style include="cr-shared-style settings-shared">
#ambientModeEnable { #ambientModeEnable {
border-bottom: var(--cr-separator-line); border-bottom: var(--cr-separator-line);
} }
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
</settings-toggle-button> </settings-toggle-button>
<template is="dom-if" if="[[prefs.settings.ambient_mode.enabled.value]]"> <template is="dom-if" if="[[prefs.settings.ambient_mode.enabled.value]]">
<label id="topicSourceDescription" class="settings-box-text"> <label id="topicSourceDescription" class="cr-padded-text">
$i18n{ambientModeTopicSourceTitle} $i18n{ambientModeTopicSourceTitle}
</label> </label>
<div class="list-frame"> <div class="list-frame">
......
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
<link rel="import" href="chrome://resources/cr_components/chromeos/bluetooth_dialog.html"> <link rel="import" href="chrome://resources/cr_components/chromeos/bluetooth_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.html"> <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toggle/cr_toggle.html"> <link rel="import" href="chrome://resources/cr_elements/cr_toggle/cr_toggle.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/list_property_update_behavior.html"> <link rel="import" href="chrome://resources/html/list_property_update_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner-lite.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner-lite.html">
<link rel="import" href="../../i18n_setup.html"> <link rel="import" href="../../i18n_setup.html">
...@@ -16,7 +18,7 @@ ...@@ -16,7 +18,7 @@
<dom-module id="settings-bluetooth-subpage"> <dom-module id="settings-bluetooth-subpage">
<template> <template>
<style include="settings-shared iron-flex"> <style include="cr-shared settings-shared iron-flex">
.container { .container {
@apply --settings-list-frame-padding; @apply --settings-list-frame-padding;
display: flex; display: flex;
...@@ -25,12 +27,9 @@ ...@@ -25,12 +27,9 @@
overflow-y: auto; overflow-y: auto;
} }
.header {
margin-top: 10px;
}
paper-spinner-lite { paper-spinner-lite {
height: var(--cr-icon-size); height: var(--cr-icon-size);
margin-block-start: 18px; /* Align with h2. */
width: var(--cr-icon-size); width: var(--cr-icon-size);
} }
...@@ -43,8 +42,8 @@ ...@@ -43,8 +42,8 @@
} }
</style> </style>
<div class="settings-box first" actionable on-click="onEnableTap_"> <div class="cr-row first" actionable on-click="onEnableTap_">
<div id="onOff" class="start settings-box-text" <div id="onOff" class="flex cr-padded-text"
on$="[[bluetoothToggleState]]" aria-hidden="true"> on$="[[bluetoothToggleState]]" aria-hidden="true">
[[getOnOffString_(bluetoothToggleState, [[getOnOffString_(bluetoothToggleState,
'$i18nPolymer{deviceOn}', '$i18nPolymer{deviceOff}')]] '$i18nPolymer{deviceOn}', '$i18nPolymer{deviceOff}')]]
...@@ -58,12 +57,10 @@ ...@@ -58,12 +57,10 @@
</div> </div>
<!-- Paired device list --> <!-- Paired device list -->
<div class="settings-box first header" hidden="[[!bluetoothToggleState]]"> <div class="cr-row first" hidden="[[!bluetoothToggleState]]">
<div class="start settings-box-text"> <h2 class="flex">$i18n{bluetoothDeviceListPaired}</h2>
$i18n{bluetoothDeviceListPaired}
</div>
</div> </div>
<div id="noPairedDevices" class="list-frame settings-box-text" <div id="noPairedDevices" class="list-frame cr-padded-text"
hidden="[[!showNoDevices_(bluetoothToggleState, pairedDeviceList_, hidden="[[!showNoDevices_(bluetoothToggleState, pairedDeviceList_,
pairedDeviceList_.splices)]]"> pairedDeviceList_.splices)]]">
$i18n{bluetoothNoDevices} $i18n{bluetoothNoDevices}
...@@ -85,14 +82,12 @@ ...@@ -85,14 +82,12 @@
</div> </div>
<!-- Unpaired device list --> <!-- Unpaired device list -->
<div class="settings-box first header" hidden="[[!bluetoothToggleState]]"> <div class="cr-row first" hidden="[[!bluetoothToggleState]]">
<div class="start settings-box-text"> <h2 class="flex">$i18n{bluetoothDeviceListUnpaired}</h2>
$i18n{bluetoothDeviceListUnpaired}
</div>
<paper-spinner-lite active="[[showSpinner_]]"> <paper-spinner-lite active="[[showSpinner_]]">
</paper-spinner-lite> </paper-spinner-lite>
</div> </div>
<div id="noUnpairedDevices" class="list-frame settings-box-text" <div id="noUnpairedDevices" class="list-frame cr-padded-text"
hidden="[[!showNoDevices_(bluetoothToggleState, unpairedDeviceList_, hidden="[[!showNoDevices_(bluetoothToggleState, unpairedDeviceList_,
unpairedDeviceList_.splices)]]"> unpairedDeviceList_.splices)]]">
$i18n{bluetoothNoDevicesFound} $i18n{bluetoothNoDevicesFound}
......
...@@ -18,15 +18,9 @@ ...@@ -18,15 +18,9 @@
<dom-module id="settings-date-time-page"> <dom-module id="settings-date-time-page">
<template> <template>
<style include="settings-shared"> <style include="settings-shared">
#timeZoneAutoDetect { #timezoneSelectorContainer {
padding: 0; padding-block-end: var(--cr-section-vertical-padding);
width: 100%; padding-inline-start: var(--cr-section-indent-padding);
}
#timeZoneButton {
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
} }
</style> </style>
<settings-animated-pages id="pages" section="dateTime" <settings-animated-pages id="pages" section="dateTime"
...@@ -35,13 +29,10 @@ ...@@ -35,13 +29,10 @@
<template is="dom-if" <template is="dom-if"
if="[[!prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]" if="[[!prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]"
restamp> restamp>
<div class="settings-box first"> <settings-toggle-button id="timeZoneAutoDetect"
<settings-toggle-button id="timeZoneAutoDetect" label="$i18n{timeZoneGeolocation}"
class="hr" pref="{{prefs.generated.resolve_timezone_by_geolocation_on_off}}">
label="$i18n{timeZoneGeolocation}" </settings-toggle-button>
pref="{{prefs.generated.resolve_timezone_by_geolocation_on_off}}">
</settings-toggle-button>
</div>
</template> </template>
<template is="dom-if" <template is="dom-if"
if="[[prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]" if="[[prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]"
...@@ -56,7 +47,7 @@ ...@@ -56,7 +47,7 @@
</cr-policy-pref-indicator> </cr-policy-pref-indicator>
</cr-link-row> </cr-link-row>
</template> </template>
<div class="settings-box continuation embedded" <div id="timezoneSelectorContainer"
hidden="[[prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]"> hidden="[[prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]">
<timezone-selector prefs="{{prefs}}" <timezone-selector prefs="{{prefs}}"
active-time-zone-display-name="{{activeTimeZoneDisplayName}}"> active-time-zone-display-name="{{activeTimeZoneDisplayName}}">
......
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