icon not showing when two dashes in name


Topic: icon not showing when two dashes in name

Meinhard Schramm asked 5 years ago

I am using the icons like this:

<MDBIcon icon="sort-down" />
<MDBIcon icon="sort-alpha-down" />

The first icon shows and the second icon does not show. The only pattern I noticed is that icons with two dashes in the name don't work. Do you have an explanation why the second icon does not show?


Aliaksandr Andrasiuk staff answered 5 years ago

Hi,

Which version of mdbreact do you use? I tried to use this icons in mdbreact v4.16.0 and all the icons are shown correctly.

Did you import necessary styles to index.js as mentioned in our documentation(step 4): https://mdbootstrap.com/docs/react/getting-started/quick-start/#existing


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.16.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags