-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix block appender position in classic themes #33895
Conversation
Size Change: +3 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this fixes the issue, but I think the semantic could be improved.
As a developer, I would expect wp-block
class to be only applied to blocks, but not appenders. That would result in unexpected behaviors if third-party plugin developers decide to use that class. Maybe they should be relying on other ways to select blocks, but better to keep it unambiguous.
Would an alternative like making the necessary styles also apply to block-list-appender
work?
Unfortunately, we can't change the class at the moment, it's a public API used by themes to define the widths. (See https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#changing-the-width-of-the-editor ) |
I mean to change whatever style contribute to fixing the position of the appender to target the |
@kevin940726 yes, that's not possible because the style is provided by the themes using the @jasmussen the inner one seems useless indeed. |
Created #35356 as a followup to the duplicate wp-block class. |
In https://github.com/WordPress/gutenberg/pull/33024/files#r659586330 the
wp-block
class has been removed from the block appender. I think this was an error, that class is used to define the max-width for blocks which the appender should adhere too, otherwise it will be position on the extreme left.I'm not really sure why the class was removed there.
Testing instructions