Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Button 2: Add block variation for 'fancy' class for the image block #425

Merged
merged 3 commits into from
Dec 12, 2018

Conversation

laurelfulford
Copy link
Contributor

@laurelfulford laurelfulford commented Dec 12, 2018

This is to address the issue in #421, but also a fun excuse play with block variations.

This update adds the option of a 'fancy' image block variation to the image block, to match behaviour already available in the Button 2 theme.

It also updates the related CSS and JavaScript, so although these blocks will have different classes than when this style is used in the old editor, they will still behave the same.

The previews aren't 100% percent (it would be nice to scale down the corners in the thumbnail), but that can be enhanced in a v2.

Options:
image

Preview when hovering over the 'Fancy' option (you can't really tell from my screenshot):

image

With 'Fancy' selected:

image

@laurelfulford laurelfulford merged commit f78c60c into master Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant