Merged in chore/SW-3298-move-sidepeekselfcontrolled- (pull request #2710)

chore(SW-3298): Moved SidePeekSelfControlled to design system

* chore(SW-3298): Moved SidePeekSelfControlled to design system


Approved-by: Anton Gunnarsson
This commit is contained in:
Hrishikesh Vaipurkar
2025-08-26 14:29:54 +00:00
parent 5f8d77e54a
commit 67bdf5bbcf
11 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
import type { SidePeekSelfControlledProps } from './sidePeek'
// Sidepeeks generally have important content that should be indexed by search engines.
// The content is hidden behind a modal, but it is still important for SEO.
// This component is used to provide SEO information for the sidepeek content.
export default function SidePeekSEO({
title,
children,
}: React.PropsWithChildren<Pick<SidePeekSelfControlledProps, 'title'>>) {
return (
<div className="sr-only">
<h2>{title}</h2>
{children}
</div>
)
}