This repository has been archived by the owner on Dec 1, 2019. It is now read-only.
Cover image overlay opacity should use a range control #276
Labels
enhancement
New feature or request
The cover image overlay opacity is currently a select control with 11 options at increments of 10%. This would be more appropriate as a range (slider) control, because most users will not care about the numerical value of this option, and the range approach allows for a more-visual interaction. This should also be instant live-previewed in the customizer with
postMessage
for instant feedback.I'm not set up to create a PR yet, but this is the revised customize control code (someone else can feel free to make this into a PR):
The step of
10
matches the current options; I would suggest using a step of 5 instead for more-granular control. This also transitions the setting to be saved as an integer, and the output should be adjusted accordingly. Also note that thesettings
parameter in the control is not required when the control ID matches the setting ID.The text was updated successfully, but these errors were encountered: