neve icon indicating copy to clipboard operation
neve copied to clipboard

Max/Min values as specific for Spacing/Responsive_Range components

Open mskapusuz opened this issue 3 years ago • 0 comments

Description:

We have max/min values for \Neve\Customizer\Controls\React\Spacing or \Neve\Customizer\Controls\React\Responsive_Range components.

Generally, our max/min values are defined for PX. But the current values look wide for relative CSS units (rem/em). Therefore we can narrow them down by diving the default values to 16 or another number.

In this way, we can have more sensitive range sliders for relative units.


Screen Shot 2022-09-12 at 14 06 44

For example: In this control; 300 (max) is good for PX but too high for EM/REM. We can have 20 for it.

We've discussed that with @cristian-ungureanu on Slack: Some cases should be kept in mind:

  • If the value of PX is between 0/1. The dividing method will not work
  • The limit should apply just in the customizer and should not affect the actual value in the db.

Alternatives:

mskapusuz avatar Sep 12 '22 11:09 mskapusuz