Skip to content

fix: set font-display: swap - #24

Open
roedoejet wants to merge 1 commit into
bcgov:mainfrom
roedoejet:dev.ap/font-display
Open

fix: set font-display: swap#24
roedoejet wants to merge 1 commit into
bcgov:mainfrom
roedoejet:dev.ap/font-display

Conversation

@roedoejet

Copy link
Copy Markdown

Ensures text is visible even if font is not yet loaded.

This might produce some layout shifts, but ultimately I think this is more accessible particularly on slower networks.

Originally from #9

ensures text is visible even if font is not yet loaded
@ty2k ty2k self-assigned this Jun 26, 2026
@ty2k ty2k added the enhancement New feature or request label Jun 26, 2026
@ty2k

ty2k commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Thanks very much for the PR @roedoejet!

I will take this change request to our team for discussion and I'll do some testing on it to see what the implications might be (especially contrasting how this might affect content heavy web pages vs dense web application layouts).

On a related note, previously, we have had folks request things like System Font Stack, either instead of or as a fallback for BC Sans. This might be a thing where we have to work in concert with the B.C. Design System to give different guidance depending on the app context.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants