You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you add a Media & Text block to a post, using a theme that doesn't support the wide alignments, it still adds the the .alignwide class on the front end, and the data-align="wide" attribute to the editor.
To Reproduce
Steps to reproduce the behavior:
Start with a theme without wide alignment support (I was using the version of Twenty Seventeen in the 5.0 branch, or Beta 1).
Create a post, and add a "Media & Text" block.
Inspect the block in the editor and note the data-align="wide" attribute.
Publish the post. Inspect the block to see the .alignwide class.
Expected behavior
That the block would not automatically add these alignments, at least in themes that don't support them. If a theme supports them, it does make sense as a default because this block benefits from some extra space.
Screenshots
In the editor (RC 4.1.1):
On the front-end (RC 4.1.1):
Additional context
I can recreate this in Gutenberg 4.1.1 and WordPress 5.0 beta.
Using the the master branch of the Gutenberg repo (latest commit 9d46788), I can also recreate the issue; in that case, updates to the editor also style the block as 'wide' in the editor (which is the only reason I noticed this!):
The text was updated successfully, but these errors were encountered:
Closing in order to consolidate with #4342. @laurelfulford, if you feel strongly that the two should remain open separately, please reply and let me know and I will re-open.
Describe the bug
When you add a Media & Text block to a post, using a theme that doesn't support the wide alignments, it still adds the the
.alignwide
class on the front end, and thedata-align="wide"
attribute to the editor.To Reproduce
Steps to reproduce the behavior:
data-align="wide"
attribute..alignwide
class.Expected behavior
That the block would not automatically add these alignments, at least in themes that don't support them. If a theme supports them, it does make sense as a default because this block benefits from some extra space.
Screenshots
In the editor (RC 4.1.1):
On the front-end (RC 4.1.1):
Additional context
I can recreate this in Gutenberg 4.1.1 and WordPress 5.0 beta.
Using the the master branch of the Gutenberg repo (latest commit 9d46788), I can also recreate the issue; in that case, updates to the editor also style the block as 'wide' in the editor (which is the only reason I noticed this!):
The text was updated successfully, but these errors were encountered: