Commit 73f46473abe for woocommerce
commit 73f46473abe2bd5bb1087d3ed297717c34f37da7
Author: Rishabh Gupta <109821717+R1shabh-Gupta@users.noreply.github.com>
Date: Mon Aug 17 07:18:16 2026 +0530
Fix Import historical data action buttons misalignment in Analytics settings (#67680)
* Fix Import historical data action buttons misalignment in Analytics settings
* Align Analytics settings action buttons flush left, matching WP core convention
diff --git a/plugins/woocommerce/changelog/fix-67170-historical-data-actions-alignment b/plugins/woocommerce/changelog/fix-67170-historical-data-actions-alignment
new file mode 100644
index 00000000000..6933acbb6cf
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-67170-historical-data-actions-alignment
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Left-align the action buttons on the Analytics settings page (Import historical data, and Reset defaults / Save settings) with the rest of the page content on wide viewports.
diff --git a/plugins/woocommerce/client/admin/client/analytics/settings/historical-data/layout.js b/plugins/woocommerce/client/admin/client/analytics/settings/historical-data/layout.js
index 5f994b1fdbb..d42bd3a8f2f 100644
--- a/plugins/woocommerce/client/admin/client/analytics/settings/historical-data/layout.js
+++ b/plugins/woocommerce/client/admin/client/analytics/settings/historical-data/layout.js
@@ -90,16 +90,16 @@ class HistoricalDataLayout extends Component {
<FailedOrdersNotice />
</div>
</div>
+ <HistoricalDataActions
+ clearStatusAndTotalsCache={ clearStatusAndTotalsCache }
+ dateFormat={ dateFormat }
+ importDate={ importDate }
+ lastImportStartTimestamp={ lastImportStartTimestamp }
+ onImportStarted={ onImportStarted }
+ stopImport={ stopImport }
+ status={ status }
+ />
</div>
- <HistoricalDataActions
- clearStatusAndTotalsCache={ clearStatusAndTotalsCache }
- dateFormat={ dateFormat }
- importDate={ importDate }
- lastImportStartTimestamp={ lastImportStartTimestamp }
- onImportStarted={ onImportStarted }
- stopImport={ stopImport }
- status={ status }
- />
</Fragment>
);
}
diff --git a/plugins/woocommerce/client/admin/client/analytics/settings/index.scss b/plugins/woocommerce/client/admin/client/analytics/settings/index.scss
index a8670140d95..4baf63f21d9 100644
--- a/plugins/woocommerce/client/admin/client/analytics/settings/index.scss
+++ b/plugins/woocommerce/client/admin/client/analytics/settings/index.scss
@@ -9,10 +9,6 @@
.woocommerce-settings__actions {
margin-bottom: $gap-largest;
- @include breakpoint( ">1280px" ) {
- margin-left: 15%;
- }
-
button {
margin-right: $gap;
}