No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Fontawesome Pro – "brands" icons do not display

    Help
    brands icon fontawesome fontawesome pro
    2
    5
    1510
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jguillod last edited by

      Hi,
      Installing and using Fontawesome Pro is working fine with solid and regular but the brands icons are not displayed.
      I found in browser dev tool that the “fa-brand-etc.css” file is not loaded by the browser (no error raised in console) but correctly configured in “plugins/fontawesome-pro.js”, and server files are correctly located like for the fa-solid, i.e.:

      …/node_modules/@fortawesome/fontawesome-pro-webfonts/css/fa-brands.css
      …/node_modules/@fortawesome/fontawesome-pro-webfonts/webfonts/fa-brands-400.woff2 (and the other formats)

      I develop with “quasar dev -m pwa -t ios” and build with “quasar build -m pwa -t ios” but nothing is displayed for brands icons.

      Any clues?

      Thanks

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        http://quasar-framework.org/components/icons.html#Using-Fontawesome-Pro

        Did you uncomment the following?
        0_1521311570249_download (2).png

        1 Reply Last reply Reply Quote 0
        • J
          jguillod last edited by

          Yes, I did uncomment it.
          I found more details on the problem. If you write this:
          <q-item-side icon=“fa-twitter”/>
          it is translated in the browser to:
          <div class=“q-item-side q-item-section q-item-side-left”><i aria-hidden=“true” class=“q-icon fa fa-twitter q-item-icon”> </i></div>

          THE PROBLEM IS THEN that the class word “fa” should be “fab” for tag <i> since it is a brand icon. Then class should equal :
          class=“q-icon fab fa-twitter q-item-icon”

          I don’t know how to inject the “fab” class instead of “fa”.

          It this a bug yet?
          Thanks!

          1 Reply Last reply Reply Quote 0
          • J
            jguillod last edited by

            Solution is very simple :
              <q-item-side icon=“fab fa-twitter”/>

            1 Reply Last reply Reply Quote 1
            • rstoenescu
              rstoenescu Admin last edited by

              Hi, Yes. This is the intended use.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post