Skip to content

Remove role="tooltip" #5

@olach

Description

@olach

Just found this nice little gem. Nice work. Seems like an easy way to add nice tooltips.

But I think the use of the role="tooltip" attribute is wrong. For example:

<button aria-label="Hey tooltip!" data-microtip-position="up" role="tooltip">

This implies that the role of the button is not a button anymore, but a tooltip. And that feels wrong, don't you think? The role of the button should still be a button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions