Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Add new Callout design for recipes and docs#616

Merged
ShaunEvening merged 28 commits into
mainfrom
new-callouts
Nov 6, 2023
Merged

Add new Callout design for recipes and docs#616
ShaunEvening merged 28 commits into
mainfrom
new-callouts

Conversation

@ShaunEvening

Copy link
Copy Markdown
Contributor

What changed?

  • Add title and icon options for callouts
  • Add warning variant of callouts
  • Update all uses of .aside in recipes with Callout
  • Provide Callout to docs screen

@netlify

netlify Bot commented Nov 2, 2023

Copy link
Copy Markdown

Deploy Preview for storybook-frontpage ready!

Name Link
🔨 Latest commit 7ca1383
🔍 Latest deploy log https://app.netlify.com/sites/storybook-frontpage/deploys/65494df40b4d2a0008f644cd
😎 Deploy Preview https://deploy-preview-616--storybook-frontpage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ShaunEvening ShaunEvening self-assigned this Nov 2, 2023
@socket-security

Copy link
Copy Markdown

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
snarkdown 2.0.0 None +0 40 kB developit

Comment thread src/content/recipes/@mui/material.md Outdated
Comment thread src/content/recipes/@emotion/styled.md Outdated
Comment thread src/content/recipes/@emotion/styled.md Outdated
Comment thread src/content/recipes/bootstrap.md Outdated
Comment thread src/content/recipes/@sveltejs/kit.md Outdated
Comment thread src/content/recipes/@vanilla-extract/css.md Outdated
Comment thread src/content/recipes/next.md Outdated
Comment thread src/content/recipes/next.md Outdated
Comment thread src/content/recipes/react-i18next.md
Comment thread src/content/recipes/@sveltejs/kit.md Outdated
@@ -1,18 +1,12 @@
<div class="aside aside__no-top">
<Callout variant="neutral" icon="ℹ️" title="Prerequisites" style={{ marginBottom: '10px' }}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the prerequisites callouts, I think this one has the best prose & formatting. Can we make it consistent with the others?

Comment thread src/content/recipes/vuetify.md

@kylegach kylegach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kylegach kylegach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate these nice improvements!

@ShaunEvening ShaunEvening merged commit 0cb4e9b into main Nov 6, 2023
@ShaunEvening ShaunEvening deleted the new-callouts branch November 6, 2023 21:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants