Add new Callout design for recipes and docs#616
Conversation
✅ Deploy Preview for storybook-frontpage ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
| @@ -1,18 +1,12 @@ | |||
| <div class="aside aside__no-top"> | |||
| <Callout variant="neutral" icon="ℹ️" title="Prerequisites" style={{ marginBottom: '10px' }}> | |||
There was a problem hiding this comment.
Instead of an inline style, can we refactor this CSS to be a better fit for what we're after? Looks like it should target ps that immediately following a heading?
p:first-of-type:not(:only-of-type) {
margin-top: 0;
}| <Callout variant="neutral" icon="ℹ️" title="Prerequisites"> | ||
|
|
||
| This recipe assumes that you have a React app using Tailwind CSS and have just set up Storybook >=7.0 using the [getting started guide](/docs/react/get-started/install). Don’t have this? Follow Tailwind's [setup instructions](https://tailwindcss.com/docs/installation) then run: | ||
| This recipe assumes that you have a React app using Tailwind CSS and have just set up **Storybook >=7.0** using the [getting started guide](/docs/react/get-started/install). Don’t have this? Follow Tailwind's [setup instructions](https://tailwindcss.com/docs/installation) then run: |
There was a problem hiding this comment.
For the prerequisites callouts, I think this one has the best prose & formatting. Can we make it consistent with the others?
kylegach
left a comment
There was a problem hiding this comment.
The new Callouts look and perform so much better than div.aside. 👏
And the significantly streamlined recipes feel much more useful, too.
Callout code looks great! Left a bunch of suggestions for the recipes.
Co-authored-by: Kyle Gach <kyle.gach@gmail.com>
kylegach
left a comment
There was a problem hiding this comment.
Appreciate these nice improvements!
What changed?
.asidein recipes with Callout