fix: themed accent + flush-right dot for Toggle on-state - #27
Merged
Conversation
- On-state track color: bg-ink → bg-accent so the Toggle reads as a themed affirmative rather than a heavy black pill. - On-state dot position: translate-x-5 (20px) → translate-x-[22px] (22px) so the dot's right edge sits flush with the track's right edge when checked, giving the UI a visible "locked-right" feel. Off state keeps the original symmetric p-0.5 inset. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Previous commit pushed the checked dot to translate-x-[22px] (flush with the track's right edge) — user feedback via screenshot shows the dot should keep the same 2px inset on the right that the off-state has on the left. Restoring translate-x-5 (20px) so both states look balanced. Accent track color change (bg-ink → bg-accent) retained. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tdody
added a commit
that referenced
this pull request
Apr 20, 2026
Phase 2 PRs 1–7 all shipped under THI-45 through THI-54 before this tracker was committed. Audit on 2026-04-19 confirmed `frontend/src/index.css` tokens match `README.md` spec exactly (no drift, light + dark). Phase 2 PR 8 (polish pass) is in-progress with #26/#27/#28 landed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Problem
The Toggle primitive's "on" state filled the track with
bg-ink(pure dark ink) and kept the dot attranslate-x-5(20 px — symmetric 2 px padding on both sides), which read as a heavy black pill with no visible commitment to the right side.Changes
bg-ink→bg-accent(teal in light, light teal in dark — matches the theme accent used elsewhere).translate-x-5→translate-x-[22px]. With the track's 2 pxp-0.5inset, 22 px places the dot's right edge exactly flush with the track's right edge, so the dot visually touches the right side when checked. Off state is unchanged — the dot keeps the symmetric 2 px inset on the left.Scope
One file (
frontend/src/components/shared/Toggle.tsx), 2 class changes. Every consumer (Financing loan-type toggle, Revenue & Expenses homestead + platform-remits + seasonal-occupancy + advanced-overrides toggles, Settings density toggle, etc.) picks up the new style automatically.Verification
npm run lint— cleannpm run build— passes🤖 Generated with Claude Code