Skip to content

Make Canvas too text transparency work (BL-16133)#7832

Open
JohnThomson wants to merge 1 commit intomasterfrom
preserveTextTransparency
Open

Make Canvas too text transparency work (BL-16133)#7832
JohnThomson wants to merge 1 commit intomasterfrom
preserveTextTransparency

Conversation

@JohnThomson
Copy link
Copy Markdown
Contributor

@JohnThomson JohnThomson commented Apr 9, 2026

This change is Reviewable


Open with Devin

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

import { IColorInfo } from "../../../react_components/color-picking/colorSwatch";
import { getRgbaColorStringFromColorAndOpacity } from "../../../utils/colorUtils";

export function getPersistedCanvasColor(colorInfo: IColorInfo): string {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Exported function getPersistedCanvasColor missing required comment per AGENTS.md

The repository's AGENTS.md mandates: "All public methods should have a comment. So should most private ones!" The new exported function getPersistedCanvasColor in canvasColorUtils.ts has no comment explaining its purpose or behavior.

Suggested change
export function getPersistedCanvasColor(colorInfo: IColorInfo): string {
// Returns a color string suitable for persistence. For opaque colors, returns the hex
// color directly. For partially transparent colors, bakes the opacity into an rgba() string.
export function getPersistedCanvasColor(colorInfo: IColorInfo): string {
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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