-
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
Block: Separator style class #10569
Comments
cc @youknowriad re: #7362, Was it intentionally named Regardless, this seems like it would be a breaking change for existing blocks to change without deprecation, and it's not obvious that we support migrations of styles. |
There was no particular reason for it to be named "default" aside from being the style that was already there for the separator. and yes there's no way to ensure style backward compatibility right now. So I'm in the fence, I mean I can see the reasoning and we could argue that we're still early that we can afford to break compatibilty but in the other hand it's just a className, is it worth breaking backward compatibility?. |
Thanks for the input guys. In my opinion, as the class is obviously wrong, confusing, it should be updated. (There is maybe possibility of something similar being applied in other blocks?) I was actually pretty confused as theme developer about how the block is rendered and styled: And like I've mentioned, the "default" can and will mean something different in every theme. |
Hey guys, |
@webmandesign Thanks for finding this problem! In light of the discussion in the PR, I'm going to close this issue and reference the flipped solution provided by the issue #13660. |
Bug description
Not sure why the "Short line" Separator block style produces
is-style-default
CSS class:Expected behavior
Should produce
is-style-short
CSS class instead.A theme can style the separator (
<hr>
tag) full width by default actually.Screenshots
Additional context
Gutenberg version 4.0.0-rc.1
The text was updated successfully, but these errors were encountered: