Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent element title is suppressed if no title is given to the icon #41

davep opened this issue Sep 2, 2019 · 0 comments


Copy link

commented Sep 2, 2019

I suspect this will be related to #13.

Simply put, if you don't supply a title in a call to fontawesome_icon, the resulting HTML looks something like this:

<i title="" class="fa fa-square-o fa-fw"></i>

Because of the title="", any title set by the parent element is "ignored" by the browser. This means it's not possible to do things like this:

<button title="Here is some help">
  Press me! {% fontawesome_icon "square-o" fixed=True %}

and have the title text appear in a tooltip for the whole of the button -- it disappears if you mouse over the icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.