As designed Color indicator cannot reflect borrowed parameter values from AdminCP Style Property macros.

ShikiSuen

Well-known member
Affected version
2.1.9
Macro property is one kind of adminCP style property which has multiple types of data input.
For example, calling .publicNavTab() directly in an LESS file in a class will inherit all properties from this macro property to the current color.

However, looks like it malfunctions at this moment, regardless that the XF 2.1.9 default template wants to use it (see the question-marked color indicator):

1589356020661.png
 
Last edited:
This is just due to the way the colour picker works again. Using @xf-publicNavTab--color as a value for something inside a Less template should work fine, and indeed using it as a property value works fine too.

The only issue is that the colour picker only knows about actual colours defined in the color style property group. We don’t attempt to load colours from other properties or sub values of CSS properties so if you use those in the picker they are expected to not resolve to the final colour.
 
Top Bottom