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

    QIcon not working with Quasar-extras 1.0.3 (Font awesome 5.0)

    Framework
    5
    7
    2381
    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.
    • marcelo
      marcelo last edited by

      QIcon component is not working with new FontAwesome 5.0 font names and prefix!
      Does anyone know how to use QIcon with new font names?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        Did you remember to put fa- in front of the name? ie: ‘caret-up’ becomes ‘fa-caret-up’

        1 Reply Last reply Reply Quote 0
        • L
          luc.claustres last edited by

          On the dev branch (0.15) you can try adding the right class according to your icon style like in https://github.com/quasarframework/quasar/blob/dev/dev/components/components/icon.vue#L16. Unfortunately I did not succeed in making it work with 0.14.

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

            I had this problem when I upgraded from 0.15 to 0.16 -> The issue was to add fa to every icon attribute. So, ex: icon=“fa fa-caret-up”. Previously it used to work without the single “fa”, maybe I was doing it wrong!

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

              Isn’t it normal that you need to update all icon strings to match the Fontawesome 5.0 specs? They have breaking changes!

              1. First, check your quasar-extras version ("$ quasar info").
              2. Then check quasar-extras release notes: https://github.com/quasarframework/quasar-extras/releases to see what version of Fontawesome you’re on.
              3. Visit Fontawesome official website. Check out icons there.
              4. Then read Quasar docs. There’s even a cheatsheet there: https://quasar-framework.org/components/icons.html#Cheatsheet
              1 Reply Last reply Reply Quote 0
              • marcelo
                marcelo last edited by

                It is all working now, I believe that you updated the component but the not the documentation at the same time and this leads to some errors, but It is everything just fine as usual now!
                Congratulations rstoenescu for your awesome work on Quasar framework! I’m now on my second project using Quasar and I became more and more fan of it!

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

                  @marcelo docs are always updated when a new version is released. maybe a browser cache issue?

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