Inline CSS for query block is too specific #34047
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Is there an existing issue for this?
Have you tried deactivating all plugins except Gutenberg?
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
Description
The new query block adds inline CSS; the use of !important on the margins is too specific, and has to be overridden in theme code by using !important again. This needs to be improved.
For example:
Step-by-step reproduction instructions
margin-left
andmargin-right
rules to the theme CSS.!important
coming from Core CSS.Expected Behavior
The use of
!important
leads to complications for theme developers and (in some instances) can't be overridden without unnecessarily complicated theme CSS.Current Behavior
The theme styles are overridden by the core css.
Screenshots or screen recording (optional)
No response
Code snippet (optional)
No response
WordPress Information
Sprache der Website | de_DE_formal
Benutzersprache | de_DE_formal
Zeitzone | Europe/Zurich
Homepage-URL | https://ffde.local
Website-URL | https://ffde.local
Permalink-Struktur | /%postname%/
Verwendet diese Website HTTPS? | Ja
Ist dies eine Multisite? | Nein
Kann sich jeder auf dieser Website registrieren? | Nein
Ist diese Website für Suchmaschinen ausgeschlossen? | Ja
Standard-Kommentarstatus | Offen
Umgebungstyp | local
Anzahl der Benutzer | 4
Verbindung mit WordPress.org | WordPress.org ist erreichbar
Gutenberg Information
Gutenberg plugin is not installed
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge, Other
Device Information
All
Operating System Information
All
The text was updated successfully, but these errors were encountered: