Skip to content

fix(capture): address review nits from #1879 (rgba-only transparent check, glass dedup key) - #1880

Closed
xuanruli wants to merge 1 commit into
mainfrom
feat/capture-review-nits
Closed

xuanruli wants to merge 1 commit into
mainfrom
feat/capture-review-nits

Conversation

@xuanruli

@xuanruli xuanruli commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1879 (merged before these nits landed). Addresses the three review nits from @miga-heygen.

  • isFilledEl transparent check — require rgba( (not rgba?) for the zero-alpha test. rgba?\([^)]*,\s*0\s*\) matched the blue channel of rgb(r, g, 0), so a solid rgb(0, 0, 0) nav CTA was misread as transparent and dropped. Only rgba() carries an explicit alpha.
  • Button dedup key — include backdropFilter, mirroring the card dedup key, so a frosted-glass button variant doesn't collapse into its non-frosted sibling.
  • rgbToHex comment — clarify that RGB channels stay comma-separated (as getComputedStyle returns them); only the alpha may follow a comma or slash.

Tested: bun run build, oxlint/oxfmt clean, vitest run src/capture/ 54/54.

🤖 Generated with Claude Code

…ss dedup key

- isFilledEl: require rgba( (not rgba?) for the zero-alpha check, so a solid rgb(0,0,0)
  nav CTA isn't misread as transparent and dropped.
- button dedup key includes backdropFilter, mirroring the card dedup key so a frosted
  button variant doesn't collapse into its non-frosted sibling.
- rgbToHex comment: clarify RGB channels stay comma-separated; only the alpha may follow
  a comma or slash.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
jrusso1020 added a commit that referenced this pull request Sep 5, 2026
Refresh the capture fixes proposed in #1880 with browser-backed regression coverage.

Co-authored-by: Xuanru Li <[email protected]>
@jrusso1020

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! The button capture fixes are now merged in #3685, with credit to you and browser regression coverage. Closing this older PR as superseded.

@jrusso1020 jrusso1020 closed this Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants