debugger
debugger copied to clipboard
[EditorSearch] Search modifier tooltips
We don't have tooltips for search modifier. It might be good idea to add some tooltips explaining what each search modifier icon is for.

Here's a patch to get started
--- a/src/components/Editor/SearchBar.js
+++ b/src/components/Editor/SearchBar.js
@@ -422,7 +422,7 @@ const SearchBar = React.createClass({
toggleModifier } = this.props;
const { functionSearchEnabled } = this.state;
- function searchModBtn(modVal, className, svgName) {
+ function searchModBtn(modVal, className, svgName, tooltip) {
const defaultMods = { caseSensitive, wholeWord, regexMatch };
return dom.button({
className: classnames(className, {
@@ -430,18 +430,19 @@ const SearchBar = React.createClass({
disabled: functionSearchEnabled
}),
onClick: () => !functionSearchEnabled ?
- toggleModifier(Object.assign(defaultMods, modVal)) : null
+ toggleModifier(Object.assign(defaultMods, modVal)) : null,
+ title: tooltip
}, Svg(svgName));
}
return dom.div(
{ className: "search-modifiers" },
searchModBtn({
- regexMatch: !regexMatch }, "regex-match-btn", "regex-match"),
+ regexMatch: !regexMatch }, "regex-match-btn", "regex-match", L10N.getStr("???")),
searchModBtn({
- caseSensitive: !caseSensitive }, "case-sensitive-btn", "case-match"),
+ caseSensitive: !caseSensitive }, "case-sensitive-btn", "case-match", L10N.getStr("???")),
searchModBtn({
- wholeWord: !wholeWord }, "whole-word-btn", "whole-word-match")
+ wholeWord: !wholeWord }, "whole-word-btn", "whole-word-match", L10N.getStr("???"))
);
},
If you are new L10N
Going to work on this
@DanUgelow any updates?
@jasonLaster Working on it! Will have for you soon
Ping @DanUgelow, any updates?