Page 1 of 1

Anchor tag class missing

Posted: 15 Jun 2016, 01:18
by djmj
When using PrimeFaces p:link anchors get css classes ui-link ui-widget applied to it like:

Code: Select all

<a class="ui-link ui-widget">myLink</a>
Using our CMS we realize that anchors are not styled automatically and editoral department must add those classes to each link.

I do not know if its by purpose and this maybe relevant to other premium and basic themes.

Why not use (same as ui-link):

Code: Select all

a
{
	color: #0091ea !important;
}

Re: Anchor tag class missing

Posted: 16 Jun 2016, 13:44
by mert.sincan
I think it is very general solution. We use anchor tag everywhere. For example; in all primefaces menus (with ui-menuitem-link) , the tab header of tabview etc..
Therefore, you should add your css class into anchor tag. If we add your solution, we need to override all component using anchor tag. I think it is not possible.

Re: Anchor tag class missing

Posted: 18 Jun 2016, 17:10
by djmj
Yes you are right and i realized it after testing it. If overriden it is also more work if one want a simple link to be style in same color as text.

Re: Anchor tag class missing

Posted: 20 Jun 2016, 09:12
by mert.sincan
Thanks for the update! I think if one user wants to this feature on anchor tag, he/she can add it into his project.