diff --git a/plugins/woocommerce-admin/client/dashboard/dashboard-charts/index.js b/plugins/woocommerce-admin/client/dashboard/dashboard-charts/index.js index 416a1b3a6b5..a89d9221edc 100644 --- a/plugins/woocommerce-admin/client/dashboard/dashboard-charts/index.js +++ b/plugins/woocommerce-admin/client/dashboard/dashboard-charts/index.js @@ -64,17 +64,6 @@ class DashboardCharts extends Component { label={ __( 'Choose which charts to display', 'woocommerce-admin' ) } renderContent={ ( { onToggle } ) => ( - { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( -
- -
- ) } { __( 'Charts', 'woocommerce-admin' ) } { uniqCharts.map( chart => { return ( @@ -90,13 +79,24 @@ class DashboardCharts extends Component { ); } ) } { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( - + +
+ +
+ +
) }
) } diff --git a/plugins/woocommerce-admin/client/dashboard/dashboard-charts/style.scss b/plugins/woocommerce-admin/client/dashboard/dashboard-charts/style.scss index 8f9923f39d2..5ef59d5264d 100644 --- a/plugins/woocommerce-admin/client/dashboard/dashboard-charts/style.scss +++ b/plugins/woocommerce-admin/client/dashboard/dashboard-charts/style.scss @@ -16,16 +16,3 @@ margin: 0; } } - -.woocommerce-section-controls { - border-top: $border-width solid $core-grey-light-500; - - .dashicon { - margin: 0 $gap-smaller 0 0; - vertical-align: bottom; - } - - .woocommerce-ellipsis-menu__item { - padding-bottom: 10px; - } -} diff --git a/plugins/woocommerce-admin/client/dashboard/leaderboards/index.js b/plugins/woocommerce-admin/client/dashboard/leaderboards/index.js index ffb63f56807..0a7ddfeb9e6 100644 --- a/plugins/woocommerce-admin/client/dashboard/leaderboards/index.js +++ b/plugins/woocommerce-admin/client/dashboard/leaderboards/index.js @@ -62,17 +62,6 @@ class Leaderboards extends Component { ) } renderContent={ ( { onToggle } ) => ( - { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( -
- -
- ) } { __( 'Leaderboards', 'woocommerce-admin' ) } { allLeaderboards.map( leaderboard => { return ( @@ -89,7 +78,7 @@ class Leaderboards extends Component { } ) } { __( 'Rows Per Table', 'woocommerce-admin' ) } } + label={ __( 'Rows Per Table', 'woocommerce-admin' ) } value={ rowsPerTable } options={ Array.from( { length: 20 }, ( v, key ) => ( { v: key + 1, @@ -98,13 +87,24 @@ class Leaderboards extends Component { onChange={ this.setRowsPerTable } /> { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( - + +
+ +
+ +
) }
) } diff --git a/plugins/woocommerce-admin/client/dashboard/section-controls.js b/plugins/woocommerce-admin/client/dashboard/section-controls.js index ab6ea77c028..a769ab1e81a 100644 --- a/plugins/woocommerce-admin/client/dashboard/section-controls.js +++ b/plugins/woocommerce-admin/client/dashboard/section-controls.js @@ -36,7 +36,7 @@ class SectionControls extends Component { const { onRemove, isFirst, isLast } = this.props; return ( -
+
{ ! isFirst && ( diff --git a/plugins/woocommerce-admin/client/dashboard/store-performance/index.js b/plugins/woocommerce-admin/client/dashboard/store-performance/index.js index 342467dca3e..6a82484c37b 100644 --- a/plugins/woocommerce-admin/client/dashboard/store-performance/index.js +++ b/plugins/woocommerce-admin/client/dashboard/store-performance/index.js @@ -57,17 +57,6 @@ class StorePerformance extends Component { ) } renderContent={ ( { onToggle } ) => ( - { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( -
- -
- ) } { __( 'Display Stats:', 'woocommerce-admin' ) } { indicators.map( ( indicator, i ) => { const checked = ! hiddenBlocks.includes( indicator.stat ); @@ -84,13 +73,24 @@ class StorePerformance extends Component { ); } ) } { window.wcAdminFeatures[ 'analytics-dashboard/customizable' ] && ( - + +
+ +
+ +
) }
) } diff --git a/plugins/woocommerce-admin/client/dashboard/style.scss b/plugins/woocommerce-admin/client/dashboard/style.scss index daea8253125..4acaccc7069 100644 --- a/plugins/woocommerce-admin/client/dashboard/style.scss +++ b/plugins/woocommerce-admin/client/dashboard/style.scss @@ -60,3 +60,17 @@ color: $core-grey-dark-300; padding-top: 8px; } + +.woocommerce-dashboard-section-controls { + border-top: $border-width solid $core-grey-light-500; + padding-top: $gap-smaller; + + .dashicon { + margin: 0 $gap-smaller 0 0; + vertical-align: bottom; + } + + .woocommerce-ellipsis-menu__item { + padding-bottom: 10px; + } +} diff --git a/plugins/woocommerce-admin/client/stylesheets/abstracts/_colors.scss b/plugins/woocommerce-admin/client/stylesheets/abstracts/_colors.scss index b6499ea76b6..65414bdd700 100644 --- a/plugins/woocommerce-admin/client/stylesheets/abstracts/_colors.scss +++ b/plugins/woocommerce-admin/client/stylesheets/abstracts/_colors.scss @@ -2,14 +2,6 @@ $white: rgba(255, 255, 255, 1); -// Grays (deprecated. Use greys below as we move to HiFi designs) -$gray: #ccc; -$gray-darken-10: darken($gray, 10%); -$gray-darken-20: darken($gray, 20%); -$gray-darken-30: darken($gray, 30%); -$gray-darken-40: darken($gray, 40%); -$gray-light-10: lighten($gray, 10%); - // Greys $core-grey-light-100: #f8f9f9; $core-grey-light-200: #f3f4f5; diff --git a/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/style.scss b/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/style.scss index 31e0e522b08..6fbcbe89cfc 100644 --- a/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/style.scss +++ b/plugins/woocommerce-admin/packages/components/src/ellipsis-menu/style.scss @@ -37,11 +37,12 @@ .woocommerce-ellipsis-menu__title, .woocommerce-ellipsis-menu__item { - padding: 10px 12px 4px; + padding: 4px 12px; } .woocommerce-ellipsis-menu__item { cursor: pointer; + color: $core-grey-dark-300; &:focus { box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff; @@ -52,8 +53,15 @@ .components-base-control__label, .woocommerce-ellipsis-menu__title { - color: #6c7781; - padding-bottom: 8px; + color: $core-grey-dark-800; + padding-top: $gap-smaller; + padding-bottom: $gap-smaller; + @include font-size( 15 ); + margin-bottom: $gap-smallest; + } + + .components-toggle-control .components-base-control__field { + margin: $gap-smallest 0; } .components-base-control { diff --git a/plugins/woocommerce-admin/packages/components/src/pagination/style.scss b/plugins/woocommerce-admin/packages/components/src/pagination/style.scss index 22ca82df8d5..73556ce7f69 100644 --- a/plugins/woocommerce-admin/packages/components/src/pagination/style.scss +++ b/plugins/woocommerce-admin/packages/components/src/pagination/style.scss @@ -37,7 +37,7 @@ } .components-icon-button:not(:disabled):not([aria-disabled='true']):hover { - color: $gray-darken-40; + color: $core-grey-dark-300; } button:first-child {