CyberChef icon indicating copy to clipboard operation
CyberChef copied to clipboard

Bug report: hint (tooltip) not displayed for text-type inputs

Open bartvanandel opened this issue 9 months ago • 2 comments

Describe the bug Ingredient arguments with a hint should render this hint as a title, or tooltip. This works for e.g. checkboxes (displayed as a title), but not for e.g. string or option type arguments.

To Reproduce

  1. Add "Diff" ingredient to recipe
  2. Hover over "Ignore whitespace", check the title tooltip appears. Good.
  3. Add "Protobuf decode" ingredient
  4. Hover over "Schema (.proto text)" input. No title appears. Bad, because its label definitely does have a hint. DOM does contain the title.

Expected behaviour

  • Title appears as a tooltip.
  • Actually, all titles are rendered as a jQuery tooltip, which is what is called from RecipeWaiter.

Screenshots ... too easy to reproduce ...

Desktop (if relevant, please complete the following information): Irrelevant, found a quick way to get it working. Will investigate further though.

Additional context title is not displayed due to pointer-events: none on the label, which is inherited from Bootstrap Material Design. jQuery tooltip isn't displayed for some other reason.

bartvanandel avatar Apr 05 '25 22:04 bartvanandel

NB: hints were introduced in #257, but as noted by @n1474335 at the time:

More work should be done to improve them from a UI perspective.

I guess this is still the case?

bartvanandel avatar Apr 05 '25 22:04 bartvanandel

@a3957273 Seeing you've been active here lately, here's another issue, a usibility one, with a fix available. Would be great if you could take a look!

bartvanandel avatar May 23 '25 10:05 bartvanandel