Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

styleguide section on tooltips is wrong or easily misunderstood #75

@allefeld

Description

@allefeld

Under "Tooltips", the styleguide says:

You do not create the markup directly. You call element.setTooltip(title, {command, commandElement}={}). Passing in a command (like find-and-replace:show-find) and commandElement (context for the command) will yield a tip with a keystroke.

I've tried this, and there is no method setTooltip, at least not on regular HTML elements.

Either I completely misunderstand (which might indicate that that text is easily misunderstood), or it refers to something that no longer exists. As far as I can tell, the standard method to create tooltips is described in the Flight Manual under TooltipManager. I propose that the text in the styleguide refers to that.

styleguide 0.49.2 under Atom 1.42.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions