Fixed Xf-intensify doesn't work against property --color when using RGB

Russ

Well-known member
Affected version
2.3 Beta 6
In 2.2 we could use this and it would work:
Code:
color: xf-intensify(@xf-xbCustomFooterCSS--color, 20%);

Now it doesn't appear to work if a style uses RGB colors (I'm updating to HSL but I can see this being an issue when styles are imported)

Easiest way to replicate the issue:
Style properties -> Footer -> Set background color to:
Code:
rgb(31, 32, 35)

Then add this to extra.less:

Code:
#XF .block-header
{
    background: xf-intensify(@xf-publicFooter--background-color, 10%);
}

It renders like this:
1714537410153.webp

Hex color codes work fine, just seems to be rgb that I can tell.
 
Last edited:
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 7).

Change log:
Attempt converting color arguments to HSL colors before falling back to native Less color functions
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom