Skip to content

Commit 1006f30

Browse files
committed
docs: add instruction for rendering legacy icons with ssr
INSTUI-5018
1 parent c35e4f6 commit 1006f30

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/__docs__/src/Icons/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const IconsPage = () => {
4848
}
4949
>
5050
<Alert variant="info" margin="0 0 medium">
51-
New incon set, currently in beta. Currently supported icons:{' '}
51+
New icon set, currently in beta. Currently supported icons:{' '}
5252
<Link href="/legacy-icons">Icons</Link>
5353
</Alert>
5454
<Alert variant="info" margin="0 0 medium">

packages/__docs__/src/LegacyIcons/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,15 @@ const LegacyIconsPage = ({ iconData }: LegacyIconsPageProps) => {
247247
New icon set is available, please only use it with InstUI v11.7 or newer
248248
components: <Link href="/icons">Icons (beta)</Link>
249249
</Alert>
250+
<Alert variant="info" margin="0 0 medium">
251+
Our legacy icon components are rendered through Emotion, so server-side
252+
rendering inlines <code>&lt;style data-emotion=…&gt;</code> blocks
253+
alongside each <code>&lt;svg&gt;</code>, which can break consumers that
254+
expect a plain SVG string. Follow{' '}
255+
<Link href="https://emotion.sh/docs/ssr">Emotion&apos;s SSR guide</Link>{' '}
256+
to extract those styles, or strip them post-render. The new icon set
257+
linked above does not have this issue.
258+
</Alert>
250259
<FormFieldGroup
251260
layout="columns"
252261
colSpacing="small"

0 commit comments

Comments
 (0)