Repository navigation
Conversation
The track's 0.5px ring-secondary ring was anti-aliased into a soft light halo against bg-brand-solid when the toggle was on. It's now a 1px inner border in translucent alpha-black (inset-ring-1 inset-ring-alpha-black/10), which stays crisp on both the gray and the brand track and flips to a light edge in dark mode. The slim variant keeps its own 1px ring.
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 track had a 0.5px
ring-secondaryinset ring. Half a pixel is anti-aliased, so when the toggle is on, the light grey ring turns into a soft halo aroundbg-brand-solid. It's most visible on 1x screens.Change: the default track now has a 1px inner border in translucent alpha-black:
inset-ring-1 inset-ring-alpha-black/10. That's the sameinset-ringutility the dropdown account cards use.bg-tertiary.bg-brand-solid, with no light halo.alpha-blackresolves to white there, so it's a faint light edge.ring-1 ring-secondary ring-inset, transparent when on, now spelled out instead of inheriting the base ring colour.How it was checked: I rendered every state (sm/md off/on, slim off/on, light and dark) at 1x and 2x screen density, before and after, and compared enlarged screenshots.
prettier --check,eslintandtsc --noEmitare clean.🤖 Generated with Claude Code