Skip to content

[Bug]: Suppress ToolTips for MacroLinks is broken #6028

Description

@bubblobill

Describe the Bug

Hyperlinks show the link URL as a tooltip regardless of preference.
Suppress ToolTips for MacroLinks acts on all links, whether they are macro: urls or not.
Tooltips suppressed (default) shows the URL as a tooltip.
The fallback tooltip expects to return the title from a "span" element. With no span it returns the URL as a tooltip. Exactly the same as when it is suppressed.
HTML spec expects the "title" attirbute to be used as a tooltip. Deviating from this probably screws up screen-readers.

To Reproduce

  1. create a hyperlink with a "title" attribute
  2. stick it in chat and hover over the result.
  3. try it with a "lib://" URL
  4. try it with a "macro://" URL
  5. try it with a "http://" URL
  6. try it with a "#id" URL

Expected Behaviour

Both "macro:" and "lib:" formats should be subject to the preference Suppress ToolTips for MacroLinks.
Only "macro:" and "lib:" formats should be subject to the preference Suppress ToolTips for MacroLinks.
Before any weird <SPAN> workarounds, the hyperlink "title" attribute should be used as a tooltip.

Screenshots

No response

MapTool Info

No response

Desktop

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions