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

Hotfix/content blocks with sidebar #48

Merged
merged 2 commits into from
May 4, 2018

Conversation

coreymcollins
Copy link
Contributor

@coreymcollins coreymcollins commented May 1, 2018

Closes WebDevStudios/wd_s#367

DESCRIPTION

@gregrickaby and I discovered that using full-width blocks would break the layout when used on a page/post with a sidebar. We logged it as a bug in wd_s, but in digging in it does appear that the issue lies in the plugin's base styles for layout. I'm not sure if these styles could necessarily be moved out of the plugin since they're not really opinionated and are just enough to get the layout working.

This looks for our has-sidebar class (used in wd_s) and doesn't apply full-width styles on blocks where that body class is found.

SCREENSHOTS


OTHER

  • Is this issue accessible? (Section 508/WCAG 2.0AA)
  • Does this issue pass linting? (ESLint)

STEPS TO VERIFY

Add blocks to a post and give them a background image, color, or video. They should now stay within the content area rather than breaking like we were seeing in the wd_s issue noted above.

Copy link
Contributor

@gregrickaby gregrickaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks! 👍

@gregrickaby gregrickaby merged commit ff3465d into master May 4, 2018
@gregrickaby gregrickaby deleted the hotfix/content-blocks-with-sidebar branch May 4, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants