Skip to content

role props is ignored using the component #329

@manuelleduc

Description

@manuelleduc

Hello,
Thanks for the migration of vue-tippy to vue 3!

I am in the need to see the attribute role='tooltip' explicitly added to the HTML produced by vue-tippy, to comply with WCAG rules.
But, I was unable to do so.

Reproduction steps

  • Install vue-tippy 6.7.0

Define the following component

<script>
import { Tippy } from "vue-tippy";
</script>
<template>
<tippy
    class="displayer-actions-popover"
    :interactive="true"
    :ignore-attributes="true"
    role='tooltip'
  >
<!-- inner content -->
</tippy>
</template>

Expected

The produced span is

<span role='tooltip' aria-expanded='false'></span>

Expected

The produced span is missing the role attribute

<span aria-expanded='false'></span>

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