Skip to content

fix: fonts flash - #348

Merged
Daryna-del merged 2 commits into
mainfrom
fix/fonts-flash
Jul 29, 2026
Merged

fix: fonts flash#348
Daryna-del merged 2 commits into
mainfrom
fix/fonts-flash

Conversation

@Daryna-del

Copy link
Copy Markdown
Contributor

What/Why/How?

Fix a bug with fonts after hard reload.

Reference

Testing

Screenshots (optional)

Before:

Screen.Recording.2026-07-23.at.17.08.42.mov

After:

Screen.Recording.2026-07-23.at.17.11.47.mov

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

@Daryna-del
Daryna-del requested a review from a team as a code owner July 23, 2026 14:12
@Daryna-del Daryna-del self-assigned this Jul 23, 2026

@redocly redocly Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marketing-site AI Review: 🟢 Completed

Note

Low Risk

The changes involve swapping static font assets, cleaning up redundant CSS definitions, and tweaking font rendering strategies. They strictly affect UI styling and have no impact on the system's business logic, functionality, or operational infrastructure.

Overview

Replaces unoptimized .ttf fonts (Gemunu Libre, Inter, Red Hat Display) with highly compressed .woff2 equivalents, significantly reducing asset payloads. In @theme/styles.css, it cleans up duplicate @font-face rules, appends format('woff2') to the src declarations, and broadly removes font-display: swap; to prevent the flash of unstyled text (FOUT) that occurs during a hard reload. Finally, it updates types/custom.d.ts with a module declaration to support *.woff2 imports in TypeScript.

@Daryna-del
Daryna-del merged commit 8705fcf into main Jul 29, 2026
6 of 7 checks passed
@Daryna-del
Daryna-del deleted the fix/fonts-flash branch July 29, 2026 16:21
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.

3 participants