Repository navigation
feat(flame): show the percentage inside the mobile toc progress ring - #473
Merged
Merged
Conversation
- The ring grows from 18px to 28px, which still fits the 32px bar button, and shows the percentage in its center without a "%" sign. - At 0 it shows a muted "0", so an empty ring no longer looks like a radio button. At 100 it becomes a filled disc with a check. - The arc has a flat cap, so a partly filled ring no longer reads as a loading spinner. Only the ring group is rotated, so the number stays upright. The TOC button now starts where the 32px menu trigger ends (-ml-1 cancels the row gap) and has a 4px left padding. The 4px dead strip between the two buttons is gone and the menu dots sit 20px from the ring instead of 32px. Both tap targets keep their size and do not overlap.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Standard-mode review of the mobile TOC progress ring redesign and the tighter spacing in MobileBar. The ring tests (13) and oxlint on the touched files pass locally.
- Bigger ring with a number —
TocProgressCirclegrows to 28px and shows the rounded percentage, without a%sign, in an upright<text>. Only the ring<g>is rotated, and the-rotate-90class is gone from the<svg>. - End states — at 0 there is a muted
fill-base-content/60"0" with no arc. At 100 a separate branch draws a filledfill-primarydisc with astroke-primary-contentcheck. - Flat cap — the arc uses
strokeLinecap="butt", and the reduced-motion opt-out on the transition is kept. - Spacing —
-ml-1 pl-1on the TOC button cancels the row'sgap-1, so it starts where the 32px menu trigger ends. Both tap targets stay intact. - Tests and changeset — tests cover size, cap, rotation scope, the 0 and 100 states, and clamping. There is a
@docubook/flamepatch changeset.
Overall: READY. No CRITICAL or HIGH findings, and no top priorities.
The only edge cases I found are rounding at the extremes. With 200 or more TOC entries, progress of 0.995 or more would show the check before the end, and progress under 0.005 would show a "0" next to a sliver of arc. Real docs pages don't have that many headings, so I didn't raise them as findings.
claude-opus-5-5 | 𝕏
This was referenced Nov 5, 2026
Merged
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.

Summary
Follow-up to #472. On the live site, the mobile TOC ring read as a loading spinner when partly filled and as a radio button when empty, and its percentage was not visible. The ring now shows the percentage inside it, and the empty space before it is tightened.
Ring
primarydisc with a check inprimary-content.aria-hidden, the button's accessible name carries the percentage, and the fill skips its animation underprefers-reduced-motion.Spacing before the ring
The TOC button now starts where the 32px menu trigger ends:
-ml-1cancels the row'sgap-1, andpl-1replaces the button's default left padding. The menu trigger keeps its 32×32 tap target, and the two buttons touch without overlapping.Verification
Built flame's docs and measured
docs/getting-started/introductionin Chromium, emulating a 390px phone with touch. The "before" column is the live docubook.pro, which runsmain.main, a tap in the 4px strip landed on neither.tsc,oxlint, the docs build and the pre-push hook pass.