Skip to content

Commit 250c194

Browse files
authored
Add nosnippet to announcement banner. (#3490)
1 parent 5b10cde commit 250c194

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/odd-pillows-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Add nosnippet to announcement banner.

packages/gitbook/src/components/Announcement/AnnouncementBanner.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ export function AnnouncementBanner(props: {
2929
const style = BANNER_STYLES[announcement.style];
3030

3131
return (
32-
<div id="announcement-banner" className="theme-bold:bg-header-background pt-4 pb-2">
32+
<div
33+
id="announcement-banner"
34+
className="theme-bold:bg-header-background pt-4 pb-2"
35+
data-nosnippet=""
36+
>
3337
<div className="scroll-nojump">
3438
<div className="transition-all duration-300 lg:chat-open:pr-80 xl:chat-open:pr-96">
3539
<div className={tcls('relative', CONTAINER_STYLE)}>

0 commit comments

Comments
 (0)