Skip to content

fix(react): add monospace fallback to editor font - #4848

Draft
NginxL wants to merge 1 commit into
graphql:mainfrom
NginxL:fix/editor-font-fallback-4772
Draft

NginxL wants to merge 1 commit into
graphql:mainfrom
NginxL:fix/editor-font-fallback-4772

Conversation

@NginxL

@NginxL NginxL commented Dec 5, 2026

Copy link
Copy Markdown

Summary

Adds ui-monospace, monospace fallbacks to the Monaco editor's default font family, matching the existing --font-family-mono token. Apps that use @graphiql/react styles without the bundled Fira Code font will now retain a monospace editor font.

Fixes #4772.

Checks

  • git diff --check
  • Compared the new stack with --font-family-mono in packages/graphiql-react/src/style/tokens.css.

Gaps

  • Tests/typecheck were not run: this sparse checkout has no installed workspace dependencies, and this environment prohibits installing new dependencies.
  • No browser visual verification was performed.

Contribution notes

  • Added a patch changeset for @graphiql/react.
  • Commit includes a DCO Signed-off-by trailer.
  • EasyCLA status will be checked on the PR.

AI disclosure

This change was prepared with AI assistance and reviewed against the issue and surrounding source.

Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 66ec871

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphiql/react Patch

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

@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[react] Editors use fontFamily: '"Fira Code"' with no fallback

1 participant