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:gatsby-remark-autolink-headers option to disable "position: relat… #26992

Closed
wants to merge 3 commits into from

Conversation

parulc7
Copy link
Contributor

@parulc7 parulc7 commented Sep 22, 2020

#26961 (comment)

Description

gatsby-remark-autolink-headers has style:"position:relative" which doesn't always work as intended. The inline style is needed for the icon option to function as it positions said icon with style of absolute or inline-block.This fix applies relative positioning only when the icon is present.

Documentation

Related Issues

Fixes #26961

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 22, 2020
@LekoArts LekoArts added topic: remark/mdx Related to Markdown, remark & MDX ecosystem and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 23, 2020
@LekoArts
Copy link
Contributor

Thanks for the PR! A snapshot test is failing, can you please update that, too? Please let us know if you need further help :)

@don-esteban
Copy link

Just a small correction. "This fix applies relative positioning only when the icon is not present."

@parulc7
Copy link
Contributor Author

parulc7 commented Sep 24, 2020

@LekoArts @don-esteban I have made another PR which passes all the tests. => #27022

@parulc7 parulc7 closed this Sep 24, 2020
@parulc7 parulc7 deleted the patch-1 branch September 25, 2020 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: remark/mdx Related to Markdown, remark & MDX ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gatsby-remark-autolink-headers: option to disable style="position: relative"
3 participants