Commit a6574ac79c5 for woocommerce
commit a6574ac79c58bcb9cfa14cd024dc800a9fb8d47e
Author: Jan Lysý <lysyjan@users.noreply.github.com>
Date: Wed Apr 15 13:24:23 2026 +0200
Fix logo image inheriting unintended margin-right in improved email design (#64137)
* Fix logo image inheriting unintended margin-right in improved email design
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/64137-fix-email-logo-margin-right b/plugins/woocommerce/changelog/64137-fix-email-logo-margin-right
new file mode 100644
index 00000000000..50c810ae18c
--- /dev/null
+++ b/plugins/woocommerce/changelog/64137-fix-email-logo-margin-right
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix logo image inheriting unintended margin-right from global img rule in improved email design.
\ No newline at end of file
diff --git a/plugins/woocommerce/templates/emails/email-styles.php b/plugins/woocommerce/templates/emails/email-styles.php
index e751982c2d8..81e033b6471 100644
--- a/plugins/woocommerce/templates/emails/email-styles.php
+++ b/plugins/woocommerce/templates/emails/email-styles.php
@@ -167,6 +167,7 @@ body {
#template_header_image img {
width: <?php echo esc_attr( $logo_image_width ); ?>px;
+ margin-<?php echo is_rtl() ? 'left' : 'right'; ?>: 0;
}
.email-logo-text {