Skip to content

Title attribute on FontAwesomeIcon component not working? #533

@jmalatia

Description

@jmalatia

The title attribute on the FontAwesomeIcon component is not showing any tooltip on hover. It's not adding a title element as a child of the svg element nor adding as an attribute on the svg element.

I see some old issues regarding it and a title prop was implemented... but nothing else really that I can find.

If this is not the purpose of the title prop is that documented anywhere? Is there another way to get a tooltip on the FontAwesomeIcon component's rendered svg element without wrapping it in another element like a span with a title attribue?

Versions used:

"@fortawesome/fontawesome-svg-core": "^7.0.0",
"@fortawesome/free-solid-svg-icons": "^7.0.0",
"@fortawesome/vue-fontawesome": "^3.1.1",
"vue": "^3.5.13"

sample codesandbox.io:
https://codesandbox.io/p/devbox/vue-forked-fdls6p?file=%2Fsrc%2FApp.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions