debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[UX] Missing tooltips for newtab, close tab and delete breakpoint

Open jnachtigall opened this issue 9 years ago • 3 comments

Currently, there are new tooltips for newtab and close tab. I'd suppose:

  • for new tab + button: Open a new tab (Ctrl+P)
  • for close tab: Close tab
  • for delete a breakpoint (same icon icon like for close tab): Delete breakpoint (or maybe Remove breakpoint?)

This wording is similar to Firefox browser.

Tooltips are helpful hints for new users, but also great for advanced users if they show their shortcut (discoverability).

jnachtigall avatar Dec 12 '16 08:12 jnachtigall

for new tab + button: Open a new tab (Ctrl+P)

Rethinking this: Actually it does not really open a new tab as @jlongster correctly pointed out in this comment . So I guess the tooltip should rather be Search for files (Ctrl+P) so it's in line with the other wording around Ctrl+P stuff

jnachtigall avatar Dec 13 '16 09:12 jnachtigall

Here's a patch to get started

diff --git a/src/components/Breakpoints.js b/src/components/Breakpoints.js
index 9db77d2..b81e598 100644
--- a/src/components/Breakpoints.js
+++ b/src/components/Breakpoints.js
@@ -106,7 +106,8 @@ const Breakpoints = React.createClass({
       ),
       dom.div({ className: "breakpoint-snippet" }, snippet),
       CloseButton({
-        handleClick: (ev) => this.removeBreakpoint(ev, breakpoint)
+        handleClick: (ev) => this.removeBreakpoint(ev, breakpoint),
+        title: "" // <--
       }));
   },

diff --git a/src/components/SourceTabs.js b/src/components/SourceTabs.js
index 1866182..aad0481 100755
--- a/src/components/SourceTabs.js
+++ b/src/components/SourceTabs.js
@@ -255,12 +255,16 @@ const SourceTabs = React.createClass({
       },
       isPrettyCode ? Svg("prettyPrint") : null,
       dom.div({ className: "filename" }, filename),
-      CloseButton({ handleClick: onClickClose }));
+      CloseButton({
+        handleClick: onClickClose,
+        title: "" // <---
+      }));
   },

   renderNewButton() {
     return dom.div({
       className: "new-tab-btn",
+      title: ""// <---
       onClick: () => this.props.toggleFileSearch(true)
     }, Svg("plus"));
   },

jasonLaster avatar Dec 30 '16 17:12 jasonLaster

Can I start working on this?

irfanhudda avatar Jan 06 '17 14:01 irfanhudda