-
Notifications
You must be signed in to change notification settings - Fork 273
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(Code): align code blocks in lists; closes #398 #399
fix(Code): align code blocks in lists; closes #398 #399
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://gatsby-theme-carbon-git-fork-boneskull-code-in-list.carbon-design-system.now.sh |
Going to defer to design on this question, as I believe the intent is for the code blocks to bleed into the gutter on the left edge. However, not sure about when in a list. @jeanservaas |
I’m not a designer, but I’d expect the left-alignment to be consistent within a list (like gfm rendering). |
@jeanservaas any feedback on this? (how code blocks should align when within a list) |
@carbon-design-system/design would like some input on how code should be rendered in lists. |
Normally I would say don't nest code snippets inside of a list -- use a header instead so that you don't have to deal with indentation or use inline code snippets. However, if this is a very common pattern in docs and absolutely must be indented, design doesn't have time to look at this, I'd say dealing with it like this will be OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alisonjoseph Sorry, I don't understand; are you asking me for a fix? I will need some hand-holding if I'm to change the right margin. I originally tried to change this myself, and couldn't figure it out. |
I'll try and take a look tomorrow and see what we need to do to fix the margins here. 👍 |
packages/gatsby-theme-carbon/src/components/markdown/Markdown.module.scss
Outdated
Show resolved
Hide resolved
…module.scss Co-Authored-By: Alison Joseph <alisonejoseph@Gmail.com>
@alisonjoseph hmm, not quite... |
I think that’s a bug with the code snippet being slightly off grid. I can open a separate PR to fix that. |
I’ll take your word for it! LGTM then, fwiw. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
@alisonjoseph thanks! |
This "works" but may not be "correct", as I'm unclear about the intention of the margins with this thing. Responsiveness seems OK.
closes #398