neve icon indicating copy to clipboard operation
neve copied to clipboard

Directional controls linking

Open abaicus opened this issue 3 years ago • 3 comments

Description:

Right now the two linking states we have are only unlinked and all values linked together. I think we should be adding another state that links values 2-by-2.

It doesn't make much sense to change all padding values (top, bottom, left, right) together, but it would be more beneficial to be able to link top-bottom and left-right so they are equal.

User story:

When changing a button padding, you would most probably want to have vertical & horizontal values linked, but it doesn't make sense to have all values linked;

When setting a border-width for a button, it's useful to have all the values linked;

abaicus avatar Jun 07 '21 05:06 abaicus

FYI, you can now use the component from latest version of Gutenberg: BoxSizing Component

HardeepAsrani avatar Jun 24 '21 20:06 HardeepAsrani

@abaicus From what I've seen, that control @HardeepAsrani mentioned is still experimental. Should I still use it like this? :seal:

arinaturcu avatar Feb 07 '22 10:02 arinaturcu

Yea, it's been experimental for more than a year at this point so not an issue. They will remove experimental anytime they're satisfied. If they, in very very unlikely scenario, remove it, Neve can anyway just use the component from importing it from the wp-components package to Neve codebase.

HardeepAsrani avatar Feb 26 '22 23:02 HardeepAsrani