Update Font Awesome version

PhiHDN
Posts: 20
Joined: 28 Aug 2014, 09:54

07 Oct 2015, 06:01

As you recommendation, I remove context-param for FA (to use FA in layout) and add css to reset PF icons. -> It works.

I look back your instruction above and see that it looks like you just edited it or I missed the reset PF icon css at the end.

Could you please explain me why I have to add that block of code when I want to change the FA version in layout?

Code: Select all

/* PrimeFaces icon reset */
.ui-widget .ui-icon.fa,
.ui-icon.fa {
    background-image: none;
    text-indent: 0px;
    background-repeat: no-repeat;
    display: block;
    overflow: visible;
    text-indent: 0px;
}
For your information, I am using PF 5.2 Community, modena theme + layout 1.0.2.

Thank you for your support!

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

07 Oct 2015, 20:56

PrimeFaces uses "ui-icon" class for icons. Therefore "ui-icon" class needs to be compatible with FA classes. We had to override some CSS classes to work ui-icon and FA in harmony. You need to use this css class;

Code: Select all

/* PrimeFaces icon reset */
.ui-widget .ui-icon.fa,
.ui-icon.fa {
    background-image: none;
    text-indent: 0px;
    background-repeat: no-repeat;
    display: block;
    overflow: visible;
    text-indent: 0px;
}

PhiHDN
Posts: 20
Joined: 28 Aug 2014, 09:54

08 Oct 2015, 05:19

aragorn wrote:PrimeFaces uses "ui-icon" class for icons. Therefore "ui-icon" class needs to be compatible with FA classes. We had to override some CSS classes to work ui-icon and FA in harmony. You need to use this css class;

Code: Select all

/* PrimeFaces icon reset */
.ui-widget .ui-icon.fa,
.ui-icon.fa {
    background-image: none;
    text-indent: 0px;
    background-repeat: no-repeat;
    display: block;
    overflow: visible;
    text-indent: 0px;
}
OK. Everything with FA is fine now.
Thank you very much!

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

08 Oct 2015, 08:18

Glad to hear, thanks ;)

Locked

Return to “Modena”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests