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

Color picker alters RGB components when changing opacity #36240

Closed
DominoPivot opened this issue Oct 13, 2017 · 0 comments
Closed

Color picker alters RGB components when changing opacity #36240

DominoPivot opened this issue Oct 13, 2017 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-color-picker Editor color picker widget issues

Comments

@DominoPivot
Copy link

  • VSCode Version: 1.16.1 and 1.17.1
  • OS Version: Ubuntu 17.04 64-bit and Windows 10 Enterprise 10.0.15063 Build 15063

Steps to Reproduce:

  1. Create a CSS file with the following content.
.foo {
  color: rgb(92, 106, 196);
}
  1. Use the color picker to change the opacity to a random value.
    The color has changed to rgba(92, 108, 196, 0.55) (note the wrong green component).

  2. Close the color picker by clicking in the file.

  3. Reopen the color picker, change the opacity again.
    The color has changed to rgba(92, 109, 196, 0.73).

This bug also occurs using the same color in hex format (#5c6ac4), but only affects some colors. I was just unlucky enough to use a problematic one and was surprised to see that some of the colors in our CSS code were off by a digit.

Reproduces without extensions: Yes

@joaomoreno joaomoreno removed their assignment Oct 16, 2017
@alexdima alexdima added the editor-color-picker Editor color picker widget issues label Oct 26, 2017
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Nov 16, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-color-picker Editor color picker widget issues
Projects
None yet
Development

No branches or pull requests

5 participants