-
Notifications
You must be signed in to change notification settings - Fork 176
Prevent child thread names bleeding through sticky sidebar rows #1183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,6 +133,19 @@ function contrastRatio(foreground: OklchColor, background: OklchColor): number { | |
| } | ||
|
|
||
| describe("theme.css neutral ramp", () => { | ||
| it("backs selected sticky sidebar rows with an opaque sidebar layer", () => { | ||
| const rule = css.match( | ||
| /\[data-sidebar-sticky-tier\]\.bb-sidebar-selected-row\s*\{([^}]*)\}/s, | ||
| )?.[1]; | ||
|
|
||
| expect(rule).toContain( | ||
| "linear-gradient(var(--state-active), var(--state-active))", | ||
| ); | ||
| expect(rule).toContain( | ||
| "linear-gradient(var(--sidebar), var(--sidebar))", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 The test still passes if a change swaps the layers. That swap puts the opaque sidebar above the active tint. Please check the complete ordered |
||
| ); | ||
| }); | ||
|
|
||
| for (const mode of MODES) { | ||
| describe(mode, () => { | ||
| const block = modeBlock(mode); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚨
slopcop/review— This selector leaves the same bleed path for open-in-split sticky rows.The other split-pane row uses
bg-sidebar-accent/50inThreadRow.tsx.Tailwind Merge removes
bg-sidebarwhen it merges that class intoSidebarStickyTier. The row stays translucent, but it does not receive this marker.A child name can still paint through that sticky row after a scroll. Please give that state an opaque backing too.