Skip to content

Conversation

@kostya-gromov
Copy link
Contributor

@kostya-gromov kostya-gromov commented Oct 13, 2025

Summary

What changed?

  • Added a new Banner component in docs/docs-components/AppLayout.tsx.
  • Rendered the banner at the top of all docs pages via AppLayout .

Why?

We’re deprecating the current documentation site and want to clearly communicate that this is legacy content, guiding users to the new Gestalt 2.0 documentation. The persistent banner ensures visitors on any docs page are informed and can easily navigate to the new site, reducing confusion and support load while improving discoverability of the latest guidance.

Screenshot 2025-10-13 at 14 01 21

Links

@kostya-gromov kostya-gromov requested a review from a team as a code owner October 13, 2025 11:55
@vercel
Copy link

vercel bot commented Oct 13, 2025

@Kostya92 is attempting to deploy a commit to the Pinterest - Subsites Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for gestalt ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ceb9f84
🔍 Latest deploy log https://app.netlify.com/projects/gestalt/deploys/69010f945204cd000866c654
😎 Deploy Preview https://deploy-preview-4087--gestalt.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 project configuration.

</Text>
</Flex>
</Flex>
<Button color="red" size="lg" text="Explore Gestalt 2.0" />
Copy link
Contributor

Choose a reason for hiding this comment

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

What should happen when a user presses this button?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should go to the gestalt.pinterest.systems

But to be honest, I'm not a huge fan of using the button as link....

Copy link
Contributor

Choose a reason for hiding this comment

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

Same here! Could this use the ButtonLink component instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done =)

paddingY={6}
role="banner"
>
<Flex alignItems="baseline" direction="row" gap={4}>
Copy link
Contributor

Choose a reason for hiding this comment

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

The button looks squished when rendering the banner on a small screen:
Partial screenshot of the preview app using iPhone 12 Pro dimensions

Only for small screens, should the button move to a separate row?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rondevera
I've fixed already =)

@kostya-gromov kostya-gromov added the patch release Patch release label Oct 21, 2025
} else if (containerWidth >= MD_BREAKPOINT_PX) {
setMaxWidth(BANNER_TEXT_MD_MAX_WIDTH);
} else if (containerWidth > SM_BREAKPOINT_PX) {
setMaxWidth(450);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this use BANNER_TEXT_MD_MAX_WIDTH instead of 450?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, thank you @rondevera

Comment on lines 84 to 86
size={isSMBreakpoint ? 'sm' : 'lg'}
target="blank"
text="Explore Gestalt 2.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove target="blank", since the Figma spec says to use the same window. Opening in a new window/tab would also need accessibility consideration: https://www.w3.org/TR/WCAG20-TECHS/H83.html

Suggested change
size={isSMBreakpoint ? 'sm' : 'lg'}
target="blank"
text="Explore Gestalt 2.0"
size={isSMBreakpoint ? 'sm' : 'lg'}
text="Explore Gestalt 2.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done =)

Copy link
Contributor

@rondevera rondevera left a comment

Choose a reason for hiding this comment

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

Great work on all the site updates! 🎉

@kostya-gromov kostya-gromov merged commit 66ec71e into pinterest:master Oct 29, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch release Patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants