IMPLEMENTED: Spacing control "Opposites linked" toggled should auto-update opposite value

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hello bricks team,

1- In a control such as Margin, enter a value.
2- If you click the Opposites linked button, the opposite value is not automatically set.
3- Now if you click on the All sides linked button, all 4 values ​​will be automatically adjusted.

In general, it is expected that if we set a value (e.g., margin top) and then click the Opposites linked button, the opposite value (margin bottom) will be set automatically.

Hi @Victor1999,

thank you for your report. I was able to replicate it and I’ve added it to the internal tracker.

Thanks,
Matej

Thank you @Matej,

is still WAIT?

Ah, good catch. Forgot to update the title :slight_smile:

Thanks.

1 Like

Hi Victor,

We added this improvement in Bricks 2.0 RC, which is now available in your account.
Changelog: Bricks 2.0-rc Changelog – Bricks

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

While it’s working fine on “spacing” controls, it doesn’t work on “dimension” controls.

AT uses dimension controls to replace spacing, margins etc… with logical properties like margin-inline, margin-block, etc… and thus can’t use the spacing ones since it’s not using the usual “top”, “left”, “bottom”, “right” suffix.