Affects Version/s: Master
Component/s: ~[Archived] UI Taglibs
<aui:icon /> taglib outputs label HTML markup even when nothing is passed. We should not ouput anything if there is no label.
If no label is passed, <span class="taglib-icon-label">...</span> should not be output.
Steps to reproduce:
- Get a latest ee-7.0.x bundle.
- Navigate to ./bundle/osgi/modules and try to modify the announcements view.jsp in com.liferay.announcements.web.jar/META-INF/resources/view.jsp
- Add <aui:icon /> at the last line in the view.jsp and save it.
- Start the bundle, add the Announcements portlet to the page.
- Inspect the page source, search for "<span class="taglib-icon-label"> </span>"