Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom HTML is not styled #15932

Closed
joyously opened this issue May 31, 2019 · 1 comment
Closed

Custom HTML is not styled #15932

joyously opened this issue May 31, 2019 · 1 comment
Labels
[Block] HTML Affects the the HTML Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@joyously
Copy link

A Custom HTML block is rendered in the editor in an iframe. This means that none of my theme's styles can affect it.

I tried this with WP 5.2.1 and with GB 5.8.0.

To reproduce
Steps to reproduce the behavior:

  1. Define a class in your theme's style sheet to change the color.
  2. Add a Custom HTML block
  3. Enter HTML with the class to change the color.
  4. Click on Preview on the Custom HTML block.
  5. See that the color is not changed.

Expected behavior
The theme's styles should be able to affect every block, so the Custom HTML should be the changed color.

Screenshots
This shows my test, using a Custom HTML block and then the same HTML in a Paragraph block.
Peek 2019-05-30 19-49

Desktop

  • OS: Ubuntu Studio 16.04
  • Browser Firefox
  • Version 66
@swissspidy swissspidy added [Block] HTML Affects the the HTML Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels May 31, 2019
@swissspidy
Copy link
Member

I believe this is a duplicate of #9129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] HTML Affects the the HTML Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants