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

Markdown updates #170

Merged
merged 7 commits into from
Jun 14, 2019
Merged

Conversation

vpicone
Copy link
Contributor

@vpicone vpicone commented Jun 13, 2019

closes #169, closes #68, closes #147

begins work on #105

This PR also separates out the MDXProvider from the components as passes the compmonents in as default props. In this way, devs can shadow the Provider and spread the default components that they don't want to override.

Major markdown components now have their styles colocated components/markdown/Markdown.module.scss which allows for an easier whole-sale override.

@vercel
Copy link

vercel bot commented Jun 13, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://gatsby-theme-carbon-git-fork-vpicone-markdown-updates.carbon-design-system.now.sh

@vpicone
Copy link
Contributor Author

vpicone commented Jun 13, 2019

@jendowns for #147:

Since the h1 role effectively consumed by the page header, and h1s go unused in the mdx content, after this PR we now style h1 tags identically to h2 tags. The only difference is h1s have no margin-top.

This means the start of your content be either a PageDescriptiobn or an h1 tag (single #). We recommend the former. We think for most content, PageDescription → AnchorLinks creates a nice hierarchy.

@vercel vercel bot temporarily deployed to staging June 13, 2019 22:59 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant