TheDutchCoder / ColorConvert

A Sublime Text 2 plugin that converts CSS colors from hex to rgb and back
MIT License
55 stars 6 forks source link

BUG: Opacity Gets 'Stuck' when coverting subsequent HEX values #13

Closed jvanalst closed 10 years ago

jvanalst commented 10 years ago

If I first convert an RGBA or an HSLA to a HEX, and then go and mess with a different line entirely... the original A value from the first line gets applied to the second line. The value gets 'stuck'.

e.g. Convert both lines to HSLA in order:

box-shadow: inset 0 3px 9px rgba(0,0,0,0.25);
color: #000;

You get:

box-shadow: inset 0 3px 9px hsla(0.0, 0.0%, 0.0%, 0.25);
color: hsla(0.0, 0.0%, 0.0%, 0.25);
TheDutchCoder commented 10 years ago

Yes this has been brought to my attention before.

I've never run into this issue, but I will investigate and try to correct the issue.

TheDutchCoder commented 10 years ago

This should now be fixed in this commit: https://github.com/TheDutchCoder/ColorConvert/commit/034b0e9c997fa824e2b248705b3fb5057b51514d