Tooltips for masthead links (#1380)

This commit is contained in:
Maaz Syed Adeeb 2017-12-05 01:14:39 +05:30 committed by Michael Rose
parent cd896b15d8
commit 634d2884a2
2 changed files with 5 additions and 1 deletions

View file

@ -10,7 +10,9 @@
{% else %}
{% assign domain = site.url | append: site.baseurl %}
{% endif %}
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li>
<li class="masthead__menu-item">
<a href="{{ domain }}{{ link.url }}" {% if link.description %} title="{{ link.description }}" {% endif %}>{{ link.title }}</a>
</li>
{% endfor %}
</ul>
<button type="button">

View file

@ -34,6 +34,8 @@ Which will give you a responsive masthead similar to this:
![priority plus masthead animation]({{ "/assets/images/mm-priority-plus-masthead.gif" | absolute_url }})
Optionally, you can add a `description` key per title in the `main` key. This `description` will show up like a tooltip, when the user hovers over the link on a desktop browser.
**ProTip:** Put the most important links first so they're always visible and not hidden behind the **menu toggle**.
{: .notice--info}