Skip to content

fix(ui): YPE-3870 - drop font-mono from the version picker language count badge - #316

Merged
cameronapak merged 2 commits into
mainfrom
ype-3870-react-sdk-version-count-in-the-version-picker-language-list-renders-with-a-slashed-zero-font
Aug 4, 2026
Merged

fix(ui): YPE-3870 - drop font-mono from the version picker language count badge#316
cameronapak merged 2 commits into
mainfrom
ype-3870-react-sdk-version-count-in-the-version-picker-language-list-renders-with-a-slashed-zero-font

Conversation

@cameronapak

@cameronapak cameronapak commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator
image

YPE-3870 | Artifacts | Task

What problems was I solving

The version picker's language trigger shows a count badge, for example the number of Bible versions available in the selected language. That badge carried yv:font-mono, so its digits rendered in the monospace stack instead of the picker's font. The monospace zero has a slash through it. Next to the language name in Inter, the badge looked like a different design.

David flagged this in the RN Expo SDK launch review. It shows up on both surfaces: the Web SDK and the RN Expo SDK's WebView version picker sheet.

After this ships, the badge digits match the rest of the picker. Success is visual: zeros render without a slash, and the badge no longer reads as a separate font.

What user-facing changes did I ship

This is a two-file PR: one class removed, plus a changeset.

No API change. No prop change. Consumers get the fix on upgrade with no code edits.

Changeset

Greptile Summary

The PR removes the monospace font utility from the Bible version picker’s language-count badge while retaining tabular numerals, and adds a patch changeset for the UI package.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
packages/ui/src/components/bible-version-picker.tsx Removes yv:font-mono from the count badge so it inherits the picker’s sans-serif font while preserving yv:tabular-nums.
.changeset/version-count-no-slashed-zero.md Adds an appropriate patch changeset documenting the corrected badge typography.

Reviews (2): Last reviewed commit: "test(ui): remove the version count badge..." | Re-trigger Greptile

Context used:

The version count badge in the version picker's language trigger used
`yv:font-mono`, which rendered numerals in a monospace face with a
slashed zero. That clashed with the rest of the picker UI on web and in
the RN Expo SDK's WebView.

Remove `yv:font-mono` so the badge inherits the picker's font, and keep
`yv:tabular-nums` for stable digit widths.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e602dcf

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

This PR includes changesets to release 4 packages
Name Type
@youversion/platform-react-ui Patch
vite-react Patch
@youversion/platform-core Patch
@youversion/platform-react-hooks 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

Comment thread packages/ui/src/components/bible-version-picker.test.tsx
The test asserted Tailwind class names rather than behavior, and jsdom
does not compute fonts, so it could not verify the slashed zero it was
meant to guard. The existing badge test already covers the count render.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@cameronapak cameronapak changed the title fix(ui): drop font-mono from the version picker language count badge fix(ui): YPE-3870 - drop font-mono from the version picker language count badge Aug 4, 2026
@cameronapak cameronapak self-assigned this Aug 4, 2026
@cameronapak
cameronapak merged commit b592e72 into main Aug 4, 2026
26 checks passed
@cameronapak
cameronapak deleted the ype-3870-react-sdk-version-count-in-the-version-picker-language-list-renders-with-a-slashed-zero-font branch August 4, 2026 20:45
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.

2 participants