Skip to content
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

fix(protocol-designer): enable color picker's alpha value #16505

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Conversation

koji
Copy link
Contributor

@koji koji commented Oct 17, 2024

Overview

enable color picker's alpha value since onChange used only rgb

color_picker_alpha.mov

close RQA-3347

Test Plan and Hands on Testing

Changelog

Review requests

Risk assessment

low

@koji koji requested review from ncdiehl11 and jerader October 17, 2024 14:08
@koji koji marked this pull request as ready for review October 17, 2024 14:08
@koji koji requested a review from a team as a code owner October 17, 2024 14:08
@koji koji requested a review from ncdiehl11 October 17, 2024 22:33
@koji
Copy link
Contributor Author

koji commented Oct 17, 2024

tested the code here

Copy link
Collaborator

@ncdiehl11 ncdiehl11 left a comment

Choose a reason for hiding this comment

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

code looks good and works well 💯

const rgbaToHex = (rgba: RGBColor): string => {
const { r, g, b, a } = rgba
const toHex = (n: number): string => n.toString(16).padStart(2, '0')
const alpha = a != null ? Math.round(a * 255) : 255
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@koji koji merged commit 9aaeecb into edge Oct 18, 2024
14 checks passed
@koji koji deleted the fix_RQA-3347 branch October 18, 2024 14:23
TamarZanzouri pushed a commit that referenced this pull request Oct 18, 2024
* fix(protocol-designer): enable color picker's alpha value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants