Repository navigation
fix(chips,code): no white square behind a favicon, and an untitled code block's buttons float over its corner - #492
Conversation
…paque white square doesn't show
…over and focus, instead of a header bar
… and run it to the block's edges, so no code shows through or beside them
Latest result Pull request merged. Final answersSession Pull request merged. PR #492 is ready to merge. The clipped-grid toolbar fix passed hosted E2E, all current-head checks passed, and all review threads are resolved. All 49 focused unit tests passed locally, and running the linter directly produced warnings only. No new commit was needed. Session Pushed c3fac28 to fix the P1 grid-frame height oscillation and resolved the review thread. The sizing model confirmed that the frame stays stable while the toolbar wraps and shrinks when it unwraps. All 24 focused unit tests passed, and lint completed with warnings only. The sandbox blocked the local browser test server, so the new Chromium regression awaits hosted CI. Session Pushed c3fac28 to fix the P1 grid-frame height oscillation and resolved the review thread. The sizing model confirmed that the frame stays stable while the toolbar wraps and shrinks when it unwraps. All 24 focused unit tests passed, and lint completed with warnings only. The sandbox blocked the local browser test server, so the new Chromium regression awaits hosted CI. Session Pushed c3fac28 to fix the P1 grid-frame height oscillation and resolved the review thread. The sizing model confirmed that the frame stays stable while the toolbar wraps and shrinks when it unwraps. All 24 focused unit tests passed, and lint completed with warnings only. The sandbox blocked the local browser test server, so the new Chromium regression awaits hosted CI. Session Pushed c3fac28 to fix the P1 grid-frame height oscillation and resolved the review thread. The sizing model confirmed that the frame stays stable while the toolbar wraps and shrinks when it unwraps. All 24 focused unit tests passed, and lint completed with warnings only. The sandbox blocked the local browser test server, so the new Chromium regression awaits hosted CI. Session Pushed c3fac28 to fix the P1 grid-frame height oscillation and resolved the review thread. The sizing model confirmed that the frame stays stable while the toolbar wraps and shrinks when it unwraps. All 24 focused unit tests passed, and lint completed with warnings only. The sandbox blocked the local browser test server, so the new Chromium regression awaits hosted CI. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-motion
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
Important
The floating toolbar can permanently hide code on touch screens, clip Copy feedback in the docs frame, and intercept text selection when scripts are disabled.
Approach: CSS blending is a direct fix for light-theme favicon backgrounds, and a floating toolbar makes sense when readers can uncover the code and still see Copy feedback.
Reviewed changes across the shared renderers and the docs host styles. All 49 focused unit tests and 25 Chromium E2E tests passed; separate Chromium checks with the docs styles reproduced the three issues below.
- Favicon blending: Light-theme favicons blend into the chip tint; the dark theme keeps its white plate.
- Code layout: Standalone untitled fences get floating controls; titled fences and grouped code keep their header layouts.
- Host styling and coverage:
--ck-surfacethemes the overlay, the docs redraw the frame above it, and the new tests cover desktop hover, focus, and Copy feedback.
gpt-6.2-sol(high) | 𝕏
Keeps the base version over this PR's changes: - e2e/code.e2e.ts: The short clipped-frame cases replace the long-block Copy status test, retaining its pointer-leave and alignment assertions and extending them to both statuses. - packages/code/docs/index.md: The toolbar description retains the floating and titled layouts and documents the intentional no-hover exception that prevents the controls from covering code. - packages/code/src/styles.ts: The always-visible no-hover overlay is intentionally replaced with an in-flow toolbar while preserving the PR’s floating hover and focus behavior.
There was a problem hiding this comment.
Important
A tap on a wrapped touch toolbar can invoke the wrong action, and showing Copy feedback can move the toolbar away from the code’s corner.
Reviewed changes in 7b4a263 since the previous Pullfrog review. All 49 focused unit tests passed; 23 of 24 Chromium code E2E tests passed. The remaining test uses Wrap’s old coordinates after wrapping moves the footer; a separate Chromium probe confirmed the extra tap area works when measured at its new position.
- Moved untitled controls below the code on screens without hover and let the actions wrap.
- Made the uninitialized overlay ignore pointer events so readers can select text beneath it.
- Kept Copy feedback inside short clipped frames and added browser coverage for confirmation and manual-copy instructions.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
Important
The new desktop wrapping rule can put Copy and other actions outside a short, clipped code block.
Reviewed changes in 907a1ab since the previous Pullfrog review. All 49 focused unit tests and 25 Chromium code E2E tests passed; a separate Chromium mouse test reproduced the clipping below.
- Kept the floating toolbar anchored to
preduring Copy feedback and measured the height needed to show either message. - Separated wrapped touch targets and updated the Wrap test to remeasure the button after the footer moves.
- Enabled wrapping on hover-capable screens before Copy feedback appears.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
Important
The standard clipped frame now keeps wrapped actions clickable, but a grid-styled frame can resize continuously while the toolbar is wrapped.
Reviewed changes in f16dea0 since the previous Pullfrog review. All 49 focused unit tests and 48 Chromium E2E tests passed. A separate Chromium check with the docs frame styles confirmed that all four custom actions and Copy were clickable at 390px.
- Reserved room for the anchored toolbar before and during Copy feedback, while keeping the no-hover footer in flow.
- Added a desktop regression for wrapped actions in a clipped frame, including clicks, Copy feedback, and the return to the original height after widening.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes in c3fac28 since the previous Pullfrog review. All 49 focused unit tests and 49 Chromium E2E tests passed.
- Stabilized floating toolbar sizing: The frame minimum now comes from the toolbar’s bottom, not the height of the
preit can stretch. I verified that both grid and flex frames stay at 88px at a 390px viewport instead of alternating between 46px and 88px. - Added a clipped-grid regression: The test checks that wrapped actions keep the frame at one height, Copy works, and the frame shrinks after widening.
gpt-6.2-sol(high) | 𝕏

Two fixes for things that looked off on rendered pages.
Chips: no white square around a favicon in the light theme
The default favicon source is Google's s2 service, and it returns opaque PNGs: vite.dev's icon comes on
#fafafa, github.com's on white. On the light chip (#f5f5f5-ish) that shows as a lighter square around the icon.In the light theme the favicon now blends with
mix-blend-mode: darken. Darken keeps the darker of the icon and the chip per channel, so any part of the icon lighter than the chip takes the chip's fill and the square goes away, whatever the source and whether the icon has transparency. I triedmultiplyfirst: it left a square about 2% darker than the chip, because Google's background is#fafafa, not pure white (measured at 4x: the chip is 245, multiply left the square at 241, darken at 246). Switching the source wasn't an option: DuckDuckGo's icon service returns 404 for vitehub.dev and models.dev.The dark theme keeps its white plate under the favicon and sets
mix-blend-mode: normal, so a dark icon still reads on a dark chip.Code: buttons float over the corner instead of a header bar
A block without a title used to get a header bar and an empty row above its first line. Now:
[file.ts]ortitle="...") gets the header. The language alone no longer makes one, sotsandshblocks lose the language label they showed in that bar.@media (hover: none)). While Copy's status ("Copied", "Couldn't copy…") is up, the buttons stay shown after the pointer leaves.--ck-surface, a new variable that defaults to--comark-accent, the background comark-ui's typeset givespre. It's laid on--comark-background, so a translucent surface still hides the code, and it runs to the block's top and right edges, so no code shows between the buttons and the edge.data-code-headercontainers (code groups, tabs, magic move) and titled blocks keep their header as before.The docs site needed two lines of its own: @vite-hub/docs paints the block's surface on a frame and leaves
pretransparent, with the frame's ring as an insetbox-shadow.docs/app/assets/landing.csssets--ck-surfaceto the frame's color and draws the ring on a::afterabove the block, so the floating surface doesn't cover it. The code docs say the same for other hosts.Evidence
Before/after of /chips and /code in light and dark, from https://comark-ui.onmax.me (main) and this branch's docs build: https://drop.vitehub.dev/d/aafr9nw3pcwh/comark-ui-492-before-after
Checks
darkenrule and the dark plate'snormal, the titled-only header padding, the floating bar's surface.pnpm docs:generate(links of 441 pages checked),doctorfor code and chips,lint:docs,vp fmt,vp lint, typecheck.Not covered: the
hover: nonerule has no browser test, only the CSS.🤖 Generated with Claude Code