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

Setting margin-left or right on to gatsby-remark-images 'wrapperStyle' prop, is not overwriting the default margin-left #12199

Closed
florinpop17 opened this issue Mar 1, 2019 · 3 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more.

Comments

@florinpop17
Copy link
Contributor

Description

Setting margin-left on to gatsby-remark-images 'wrapperStyle' prop, is not overwriting the default margin-left which is set the be auto.

Steps to reproduce

Add the gatsby-remark-images plugin to your project and try setting the following value in gatsby-config.js:

{
    resolve: `gatsby-remark-images`,
    options: {
        quality: 80,
        wrapperStyle: 'margin-left: 0;'
    }
}

Expected result

It should overwrite the default margin-left: auto.

@florinpop17
Copy link
Contributor Author

I noticed here on line 244 that the options.wrapperStyle is set before other inline css declarations.

florinpop17 added a commit to florinpop17/gatsby that referenced this issue Mar 1, 2019
Addressing issue [12199](gatsbyjs#12199) where the default values couldn't be overwritten.
wardpeet added a commit that referenced this issue Mar 11, 2019
…tyle (#12200)

Addressing issue [12199](#12199) where the default values couldn't be overwritten.

Co-authored-by: Ward Peeters <[email protected]>
@gatsbot
Copy link

gatsbot bot commented Mar 22, 2019

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 💪💜

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Mar 22, 2019
@gatsbot
Copy link

gatsbot bot commented Apr 2, 2019

Hey again!

It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.

Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

@gatsbot gatsbot bot closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more.
Projects
None yet
Development

No branches or pull requests

1 participant