Repository navigation
fix: apply --font-mono to code elements - #3299
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: df33924 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
colepeters
force-pushed
the
sdk-3002/code-font
branch
from
November 4, 2026 21:34
74385cf to
df33924
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Applies the
--font-monofont family stack tocodeelements. Fixes https://linear.app/sanity/issue/SDK-3002/inline-code-in-text-renders-in-the-browsers-monospace-fontWhat to review
Is the font set correctly?
Testing
Added a new Text story with nested semantic elements.
Note
Low Risk
Small global CSS reset tweak with no auth, data, or logic changes; low blast radius aside from all
codeelements inheriting--mono.Overview
Inline
<code>inside typography (e.g. Text) now uses the design system monospace stack instead of the browser default.The global reset adds
:where(code) { font-family: var(--mono); }, matching how.sui-font-monois wired elsewhere. A NestedElements Storybook story covers<strong>,<em>, and<code>inside Text for manual/visual checks. The changeset records a @sanity/ui patch.Reviewed by Cursor Bugbot for commit df33924. Bugbot is set up for automated code reviews on this repo. Configure here.