Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(CodeBlock): use semantic --text-code-size token for md size (#1273)

Cindy Zhangfff5dd39ae35
diff --git a/packages/core/src/CodeBlock/XDSCodeBlock.tsx b/packages/core/src/CodeBlock/XDSCodeBlock.tsx
index 5571cd8179..f53d07cd7f 100644
--- a/packages/core/src/CodeBlock/XDSCodeBlock.tsx
+++ b/packages/core/src/CodeBlock/XDSCodeBlock.tsx
@@ -126,13 +126,13 @@ const styles = stylex.create({
fontSize: textSizeVars['--font-size-sm'],
},
sizeMd: {
- fontSize: textSizeVars['--font-size-base'],
+ fontSize: typeScaleVars['--text-code-size'],
},
gutterSm: {
fontSize: textSizeVars['--font-size-sm'],
},
gutterMd: {
- fontSize: textSizeVars['--font-size-base'],
+ fontSize: typeScaleVars['--text-code-size'],
},
copyButton: {
display: 'inline-flex',