redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Making output field better

Open mharis opened this issue 12 years ago • 1 comments

For some fields such as color, there should be a way to make use of the same field multiple times but for different selectors for e.g lets say I have the following output for the primary color field:

'output' => array('a:hover', '.footer-widgets a:hover', '.copyright-container a:hover'),

I would like to assign the same color to the border somewhere and that is not possible right now so maybe something like this can be implemented:

'output' => array(
'color' => array('a'),
'border-color' => array('div'),
),

So what do you guys think? If implemented for certain fields, this can be quote useful. Should I go ahead and implement that?

mharis avatar Feb 11 '14 08:02 mharis

Oy, you're welcome to code that complexity in. It's a bit intense isn't it? That's why color works for color, and border works for border.

I see what you mean, but you should use like a LESS compiler instead with variables if you want to do that. I think it's too much complexity for the core for me to do. I'd rather do other things. ;)

dovy avatar Feb 11 '14 15:02 dovy