-
Notifications
You must be signed in to change notification settings - Fork 4
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: markdown story styling #1536
Conversation
size-limit report 📦
|
90c2a02
to
ca107f3
Compare
Codecov Report
@@ Coverage Diff @@
## next #1536 +/- ##
=======================================
Coverage 91.87% 91.87%
=======================================
Files 285 285
Lines 4294 4294
Branches 792 792
=======================================
Hits 3945 3945
Misses 324 324
Partials 25 25 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -8,7 +8,6 @@ | |||
*/ | |||
module.exports = { | |||
stories: [ | |||
'./components/GettingStarted/GettingStarted.stories.tsx', |
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.
now in ../docs
34dcb96
to
9e959e5
Compare
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.
Looks good to me. We might have places where we can tighten things even more, but we can always revisit that too
parameters: { | ||
chromatic: { disableSnapshot: true }, | ||
axe: { | ||
skip: true, | ||
}, | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<Documentation> | ||
<Story /> | ||
</Documentation> | ||
), | ||
], |
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.
this could be a JSON in Docs/ that gets imported into each of the subsequent documentation pages, so that they all share the same grammar. DRY-ing the story config some
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.
Oh good idea. Placed it in the MarkdownWrapper.tsx
file instead tho since it needs a tsx extension for the decorator
@@ -0,0 +1,105 @@ | |||
.documentation { |
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.
Another possible name is .markdown
and the component is MarkDownWrapper
or something... 🤔?
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.
I'm down for MarkdownWrapper
and .markdown
|
||
export default { | ||
title: 'Documentation/Guidelines', | ||
...markdownStorybookOptions, |
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.
ooh this is nice 😍
@@ -0,0 +1,105 @@ | |||
.markdown { |
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.
late to review! but we should add a file comment explaining
- purpose of this file
- where the styles come from
- why we don't care that it's all magic numbers
## [11.0.0](v10.0.0...v11.0.0) (2023-03-17) ### ⚠ BREAKING CHANGES * add `indeterminate` prop to <Checkbox> that's separate from `checked` (#1520) ### Features * add `indeterminate` prop to <Checkbox> that's separate from `checked` ([#1520](#1520)) ([d8e2cc4](d8e2cc4)) * **LoadingIndicator:** extract and use SVG animation directly ([#1540](#1540)) ([6e315ea](6e315ea)) * **menu:** add Menu.PlainButton as a minimally styled Menu button ([#1516](#1516)) ([8268d8e](8268d8e)) ### Bug Fixes * actually use our shared prettier config ([c98ea51](c98ea51)) * **Avatar:** loosen props for avatar aria-label component ([#1544](#1544)) ([4ab9183](4ab9183)) * markdown story styling ([#1536](#1536)) ([89eba6b](89eba6b))
Summary:
- seems a lot of the markdown files had their own tsx file, which was unnecessary, so dried those into one
Documentation.tsx
Documentation
componentDocumentation
folderTest Plan: