diff --git a/plugins/woocommerce-admin/client/analytics/settings/historical-data/style.scss b/plugins/woocommerce-admin/client/analytics/settings/historical-data/style.scss index f8bda4309f9..97b574730de 100644 --- a/plugins/woocommerce-admin/client/analytics/settings/historical-data/style.scss +++ b/plugins/woocommerce-admin/client/analytics/settings/historical-data/style.scss @@ -49,12 +49,6 @@ } } -.woocommerce-setting__options-group { - input[type='checkbox']:checked::before { - content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($studio-white)}%27%2F%3E%3C%2Fsvg%3E'); - } -} - .woocommerce-settings-historical-data__progress-label { display: inline-block; font-weight: bold; diff --git a/plugins/woocommerce-admin/client/analytics/settings/setting.js b/plugins/woocommerce-admin/client/analytics/settings/setting.js index 3bf5f84cb45..3239977830b 100644 --- a/plugins/woocommerce-admin/client/analytics/settings/setting.js +++ b/plugins/woocommerce-admin/client/analytics/settings/setting.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import { Button } from '@wordpress/components'; +import { Button, CheckboxControl } from '@wordpress/components'; import { Component } from '@wordpress/element'; import { compose } from '@wordpress/compose'; import PropTypes from 'prop-types'; @@ -116,21 +116,24 @@ class Setting extends Component { const { disabled } = this.state; return options.map( ( option ) => { - const id = uniqueId( name + '-' + option.value ); return ( - + + handleChange( { + target: { + checked, + name, + type: 'checkbox', + value: option.value, + }, + } ) + } + disabled={ disabled } + /> ); } ); } diff --git a/plugins/woocommerce-admin/client/analytics/settings/setting.scss b/plugins/woocommerce-admin/client/analytics/settings/setting.scss index f8d1a26925b..d97a0482c1f 100644 --- a/plugins/woocommerce-admin/client/analytics/settings/setting.scss +++ b/plugins/woocommerce-admin/client/analytics/settings/setting.scss @@ -40,14 +40,14 @@ margin-bottom: 0; } - input[type='checkbox'] { - margin-right: $gap-small; - } - button { margin-bottom: $gap-small; align-self: flex-start; } + + .components-base-control__field { + display: flex; + } } .woocommerce-setting__options-group-label { diff --git a/plugins/woocommerce-admin/client/layout/style.scss b/plugins/woocommerce-admin/client/layout/style.scss index da75bb737bc..cdd785a412c 100644 --- a/plugins/woocommerce-admin/client/layout/style.scss +++ b/plugins/woocommerce-admin/client/layout/style.scss @@ -90,7 +90,7 @@ &.is-active, &.is-complete { .woocommerce-stepper__step-icon { - background: $studio-woocommerce-purple-60; + background: $blue-medium-focus; color: $studio-white; } @@ -100,7 +100,7 @@ } .woocommerce-spinner { - background: $studio-woocommerce-purple-60; + background: $blue-medium-focus; } } @@ -136,39 +136,12 @@ display: inline-block; } - .components-form-toggle__track { - width: 36px; - max-width: 36px; - height: 18px; - max-height: 18px; - } - .components-base-control__field { margin-bottom: 0; } - - &.is-checked { - .components-form-toggle__track { - background-color: $studio-woocommerce-purple-60; - border-color: $studio-woocommerce-purple-60; - } - } } } -body.woocommerce-page .components-button.is-button.is-primary.is-busy:not(:disabled):focus { - cursor: progress; - /* stylelint-disable function-parentheses-space-inside, function-comma-space-after */ - background-image: linear-gradient( - -45deg, - $studio-pink-50 28%, - color($studio-pink-50 shade(30%)) 28%, - color($studio-pink-50 shade(30%)) 72%, - $studio-pink-50 72% - ) !important; // Gutenberg & PostCSS Add the gradient late in output, based on the 'primary' color, which in our case is purple. Our busy state should be pink. - /* stylelint-enable */ -} - .woocommerce-task-dashboard__container .components-button.is-button, .woocommerce-profile-wizard__body .components-button.is-button, .woocommerce-page .components-modal__frame .components-button.is-button { diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/benefits/index.js b/plugins/woocommerce-admin/client/profile-wizard/steps/benefits/index.js index 0bfcf498842..08090c0ba9f 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/benefits/index.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/benefits/index.js @@ -237,7 +237,6 @@ class Benefits extends Component { isBusy={ isInstallAction } disabled={ isRequesting || isInstallAction } onClick={ this.startPluginInstall } - className="woocommerce-profile-wizard__continue" > { __( 'Yes please!', 'woocommerce-admin' ) } diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details.js b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details.js index 631ee4f10b0..4864f3931a7 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details.js @@ -654,7 +654,6 @@ class BusinessDetails extends Component {