Something wrong with setting opacity?

Hello

It looks to me that the color wheel ignores opacity. F.e. I have this line of code:

$('#locationaccuracy').css('color', '#2730e5');

On the left side there is a color square (blue) representing the set color. Now I click on that color square and the color wheel opens. I change the opacity and press the "Choose" button. The color wheel gets closed but the code didn't change (same line as previously posted) and opacity is not considered.

PhpStorm 2018.2.5
Build #PS-182.4892.16, built on October 11, 2018
Licensed to Farai Aschwanden
Subscription is active until December 8, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6

I haven't used that option for a while so I don't know if that is supported in general. But otherwise what sense does it make to display opacity for changes and then ignore it?

Regards

0
2 comments

It only affects colors with alpha specified, like:

div {
    background-color: rgba(0, 0, 0, 0.5);
    padding:50px;
}

I guess we still could adjust the color under the cursor to match to what's on the wheel, or at least hide the opacity ruler. Please submit a request for that: https://youtrack.jetbrains.com/newIssue?project=WEB

0
Avatar
Permanently deleted user

Ah, it only changes the opacity if the code is in "rgba". Not a big thing, it's just confusing if you use hex code typing and the opacity does not be considered. In that case (if someone sets an opacity value) the code should switch from hex code to rgba OR (as you mentioned) the opacity should not be displayed. No need to create a request for this. I use https://www.w3schools.com/colors/colors_picker.asp instead.

Regards

0

Please sign in to leave a comment.