Repository navigation
fix(bots): make the Suggested marker readable under every theme - #52224
Closed
orca-remote-automation[bot] wants to merge 1 commit into
Closed
orca-remote-automation[bot] wants to merge 1 commit into
orca-remote-automation[bot] wants to merge 1 commit into
Conversation
The recommended quick reply's Suggested marker was accent-colored text, which fell below 4.5:1 under some Match Terminal themes (e.g. Ghostty Default Style Dark, Dracula). It is now foreground text on a background pill ringed in the accent, so it reads wherever the theme's own text does, idle and hovered.
[Low impact] This styling change appears safe to merge. SummaryMakes the Suggested marker a rounded pill using the theme’s foreground and background colors, with an accent ring.
Reviews (1) · Last reviewed commit: "fix(bots): make the Suggested marker rea..." · Reviewed by Greptile |
Contributor
Author
|
Superseded by #52236, which replaced the text marker with an accent star. Nothing left to apply here. |
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
Fixes C14-01 from #49587: the "Suggested" marker on a question's recommended reply was accent-colored text. Under some Match Terminal themes it fell below 4.5:1 (Ghostty Default Style Dark 4.18 idle / 3.84 hover, Dracula 4.3 / 3.95).
The marker is now foreground text on a
bg-backgroundpill with an accent ring (inset-ring-theme-accent/50). It uses only existing theme tokens, no new literals. Its contrast is the theme's own foreground on its own background, which the app theme already keeps readable. It no longer depends on the accent or the row's hover tint.Unchanged:
text-xs, the right alignment, the row tint, and the narrow-pane layout (below 18rem the marker moves under the label). The pill's right edge sits on the card's time edge. In a narrow pane its left edge sits on the label edge. The pill is compact (px-1.5) with no extra elements.Checked against how comparable products handle this.
Contrast, measured in the running app
The marker text against the composited surface behind it, at 340px.
Screenshots
Red dashed guides mark the card's time edge and the reply label's edge, at 220 / 300 / 340px.
Light, short and long label:
Dark, short and long label:
All six themes, idle and hover:
Performance
The diff only changes the marker's classes, all static Tailwind utilities with no new elements, effects or state. Paint cost is one rounded background plus an inset ring on a single span per open question.
Tests and i18n
The
bots.items.ask.suggestedstring is unchanged. No test asserts the marker's classes.pnpm check:changedpasses.