Skip to content

Commit

Permalink
fix cssvar mode in antd
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Oct 22, 2024
1 parent 0561b1b commit db511ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/functions/extractStaticStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ export const extractStaticStyle = (html?: string, options?: ExtractStyleOptions)
<style
key={'antd'}
data-antd-version={version}
data-rc-order="prepend"
data-rc-priority="-9999"
dangerouslySetInnerHTML={{ __html: antdCssString }}
/>
),
ids: Array.from(cache.cache.keys()),
key: 'antd',
css: antdCssString,
tag: `<style data-antd-version="${version}">${antdCssString}</style>`,
tag: `<style data-rc-order="prepend" data-rc-priority="-9999" data-antd-version="${version}">${antdCssString}</style>`,
};

// copy from emotion ssr
Expand Down

0 comments on commit db511ef

Please sign in to comment.