Skip to content

Previewing email templates in admin loads admin area CSS #27543

Closed
@erfanimani

Description

@erfanimani

Preconditions (*)

  1. Magento 2.3.4, but this happens to other versions too

Steps to reproduce (*)

  1. In the admin, navigate to Marketing -> Email Templates
  2. Load a template and hit Preview Template

Expected result (*)

  1. Email looks as "true" as possible, without any interference of CSS unrelated to the actual email

Actual result (*)

  1. Admin CSS interferes with how the email looks

The issue is simply that admin CSS is loaded when previewing email templates, which could interfere with how the emails show up as. With the Luma emails this difference is not much, some minor typography changes. However, when designing email templates from scratch, this could have a big effect — making the Preview Template functionality useless.

See screenshot below. Essentially there are two pages, one is the outer page (preview), and one is the inner page/iframe (popup). The iframe exists supposedly to isolate CSS changes. However, that's rendered moot as admin CSS is also loaded inside the iframe.

image

Metadata

Metadata

Assignees

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.3.4Indicates original Magento version for the Issue report.Severity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions