Skip to content

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

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

fix(capture): address review nits from #1879 (rgba-only transparent check, glass dedup key)#1880
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 <noreply@anthropic.com>
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.

1 participant