Gutenberg: Editor: Editor styles of Gutenberg overwrite theme editor styles

Created on 8 May 2020  ·  2Comments  ·  Source: WordPress/gutenberg

Describe the bug

Gutenberg adds the following editor style, which overwrites the default editor styles of the theme:

.editor-styles-wrapper a {
    color: inherit;
    transition: none;
}

To reproduce

Steps to reproduce the behavior:

  1. Go to 'https://themes.local/wp-admin/post-new.php'
  2. Create a new post
  3. Add at least one link
  4. See error

Expected behavior

The link is using the theme editor styles.

Current behavior

The link is using the Gutenberg editor styles.

Screenshots

Currently:

Screenshot 2020-05-08 at 19 50 29
Expected:

Screenshot 2020-05-08 at 19 50 53

Editor version (please complete the following information):

  • WordPress version → 5.4.1
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? → Yes and this issue only occurs when the Gutenberg plugin had been activated
  • If the Gutenberg plugin is installed, which version is it? → 7.9.1

Desktop (please complete the following information):

  • OS: macOS 10.15.3
  • Browser: Chrome 81.0.4044.129 (Official Build) (64-bit)
[Status] Duplicate [Type] Bug

Most helpful comment

Thanks for reporting! This appears to be a duplicate of https://github.com/WordPress/gutenberg/issues/22139, and it should be fixed as of https://github.com/WordPress/gutenberg/pull/22160. I'll close for now, but we can re-open if I'm incorrect about that. 👍

All 2 comments

Same happened to me, seems to be a recent update?

Thanks for reporting! This appears to be a duplicate of https://github.com/WordPress/gutenberg/issues/22139, and it should be fixed as of https://github.com/WordPress/gutenberg/pull/22160. I'll close for now, but we can re-open if I'm incorrect about that. 👍

Was this page helpful?
0 / 5 - 0 ratings