Skip to content
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: Remove alignundefined class from gallery block edit markup #13192

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

jorgefilipecosta
Copy link
Member

Description

Related: #13170
Previously when no align was set an alignundefined class was added in the edit markup of the gallery block.
This PR makes use of classnames util to conditionally add the class when an align is set.

How has this been tested?

I added a gallery block, and select some images.
I Verified using the browser dom inspector that no alignundefined class is added to the gallery ul element.
I selected a wide alignment and I verified alignwide class was added.
I removed the wide aligment and I verified alignwide class was removed without an alignundefined class being added.

@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Block] Gallery Affects the Gallery Block - used to display groups of images labels Jan 4, 2019
@jorgefilipecosta jorgefilipecosta added this to the 4.9 milestone Jan 7, 2019
@youknowriad youknowriad merged commit 204f7a0 into master Jan 9, 2019
@youknowriad youknowriad deleted the fix/alignundefined-class-on-gallery-block-edit branch January 9, 2019 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants