Anchor tag class missing

Locked
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

15 Jun 2016, 01:18

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;
}
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

16 Jun 2016, 13:44

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.

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

18 Jun 2016, 17:10

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.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 Jun 2016, 09:12

Thanks for the update! I think if one user wants to this feature on anchor tag, he/she can add it into his project.

Locked

Return to “Adamantium”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests