Skip to content

b-icon title support #5711

Closed
Closed

Description

@mariusa

Is your feature request related to a problem? Please describe...

I'd like to set a title on / elements

Describe the solution you'd like

<b-icon-envelope :title="user_email"></b-icon-envelope>

Describe alternatives you've considered

wrapping in a parent element having a title set

Additional context

https://stackoverflow.com/questions/10643426/how-to-add-a-tooltip-to-an-svg-graphic

the SVG <title> element and the default browser rendering it conveys? (Note: this is not the same as the title attribute you can use on div/img/spans in html, it needs to be a child element named title)

It does work:

<svg viewBox="0 0 16 16" width="1em" height="1em" focusable="false" role="img" aria-label="envelope" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="bi-envelope b-icon bi">
    <title>Aaaa</title>
    <g><path fill-rule="evenodd" d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2zm13 2.383l-4.758 2.855L15 11.114v-5.73zm-.034 6.878L9.271 8.82 8 9.583 6.728 8.82l-5.694 3.44A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.739zM1 11.114l4.758-2.876L1 5.383v5.73z"></path></g>
</svg>

Activity

  1. added a commit that references this issue on Sep 3, 2020
    3756b2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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