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

[Media Object] Mixins not functioning in flex mode #9038

Closed
marcusmoore opened this issue Jul 20, 2016 · 6 comments
Closed

[Media Object] Mixins not functioning in flex mode #9038

marcusmoore opened this issue Jul 20, 2016 · 6 comments

Comments

@marcusmoore
Copy link

How can we reproduce this bug?

Assuming we are compiling our assets

  1. Enable flex mode via instructions here
  2. Create a new component using the SASS mixins (media-object-container and media-object-section())
  3. Create page with an example code from docs and created component

What did you expect to happen?
The output from the example code and the component code would be the same.

What happened instead?
The required .main-section is overridden by the compiled media object mixin.

The

Test case:
Here is a gist with my code and some screenshots demonstrating the issue:

Desktop

screenshot 2016-07-20 13 05 26

Mobile

screenshot 2016-07-20 13 05 59

@marcusmoore
Copy link
Author

I may have fixed part of the problem by adding flex: 1 1 0px; manually:

.MediaObject {
  @include media-object-container;


  &__section{
    @include media-object-section();

    &--main{
      // Pulled from _media_object.scss
      @if $global-flexbox {
          flex: 1 1 0px;
      }
    }
  }
}

@rafibomb
Copy link
Member

I don't think there is any flex mode set up for this component. Should be straight forward to add it though.

@kball
Copy link
Contributor

kball commented May 17, 2017

@rafibomb I see you added help wanted so going to assume assigning it to yourself doesn't mean you don't want someone to take it... @marcusmoore would you like to take a crack at a PR to address this?

@marcusmoore
Copy link
Author

@kball Unfortunately I don't have the time right now. I can take a look in a few weeks if it's still open but I can't commit to it right now.

@Martskin
Copy link
Contributor

I took a swing at refactoring the Media Object mixins here: #10679

@brettsmason
Copy link
Contributor

This looks like the PR addressing this was successfully merged into core so closing this.

ncoden added a commit to ncoden/foundation-sites that referenced this issue Jun 16, 2018
…n-flex-mode for v6.5.0

310e3dc Addresses Media Object mixin issue in Flex mode. foundation#9038.
af9d697 Adds Media Object visual test page.
606f164 fix: prevent side-effect from .stack-for in media-object

Co-Authored-By: Nicolas Coden <nicolas@ncoden.fr>
Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants