How to use prefix class with FA SVG Icons


Topic: How to use prefix class with FA SVG Icons

BizRTC pro asked 6 years ago

Hi, I am using MDB PRO. I noticed that when I started using SVG w/JS my input's prefix stopped working. For example for the below code :
<div class="md-form">
    <i class="fa fa-envelope prefix"></i>
    <input type="text" id="form2" class="form-control">
    <label for="form2">Example label</label>
</div>

The input's icon color used to change when the input is in focus.
But now it does not. How do I change the colour of that SVG icon when my input is focus?Icon Prefixes
 

Jakub Mandra staff premium answered 6 years ago

Hi there, Can you provide more precise snippet? I'm not sure what the problem is. Please use our snippets generator, and paste the link here in comment.   Regards, Jakub
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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: Windows
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes
Tags