neve
neve copied to clipboard
Max/Min values as specific for Spacing/Responsive_Range components
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.

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.