-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opinionated changes to Features page copy and controls. #3721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good but the "enable to" when using checkboxes feels wonky and I'd just simplify this.
'type' => 'checkbox', | ||
'default' => '0', | ||
'key' => 'trigger_ga_event', | ||
'help' => __( 'Enable to fire a gtag tracking event when an autosuggest result is clicked.', 'elasticpress' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like this could just be "Fire a gtag tracking event when an autosuggest result is clicked."
'value' => 'any', | ||
], | ||
], | ||
'type' => 'radio', | ||
], | ||
[ | ||
'default' => '1', | ||
'help' => __( 'When enabled, it will show the term count in the instant results widget.', 'elasticpress' ), | ||
'help' => __( 'Enable to show the number of matching results next to filter options.', 'elasticpress' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also be just "Show the number of matching results next to filter options."
], | ||
], | ||
'type' => 'radio', | ||
], | ||
[ | ||
'default' => '0', | ||
'help' => __( 'Wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the "ep-highlight" class for easy styling.' ), | ||
'help' => __( 'Enable to wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the <code>ep-highlight</code> class for easy styling.' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the ep-highlight
class for easy styling."
Description of the Change
Changes all feature settings that were radio buttons with just Enabled/Disabled options into checkbox controls, with descriptive labels.
Also changes the labels and help text for consistency (help text is all phrased as directives now).
How to test the Change
Changelog Entry
Changed - Updated the labels of feature settings and options for consistency and clarity.
Credits
Props @JakePT
Checklist: