• Resolved aaron13223

    (@aaron13223)


    Hi There,

    I recently ran into a problem where the variables inside the optimized CSS files are broken.

    The original value is something like: --pico-color: rgb(255 123 85);

    And after minification, it changes to: --pico-color: #ff;

    Basically breaking that line and reverting the color on some elements to their inherited value.

    Would you have an idea as to why this might be happening and if there’s anything we can do to fix this?

    If I go in and edit the css files and give them hex color values instead of rgb, that fixes the problem temporarily however I would still like to use the the rgb values….

    Another interesting observation is that in the code below, only the last variable would be broken --pico-color

    .button-secondary {
    --pico-background-color: rgb(255 123 85 / 10%);
    --pico-border-color: rgb(255 123 85 / 10%);
    --pico-color: rgb(255 123 85);
    font-weight: 600;
    }

    Let me know what you think and thanks a lot for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.