I'm facing a challenge with using Font Awesome to design my form. The FA icon comes pre-filled with color, but when I try to apply a specific color, it gets applied to the entire icon. Is there a way to work around this issue? Alternatively, should I consider using a different unicode character altogether?
It's worth mentioning that I am required to achieve this solely through CSS without altering the parent component. Therefore, I need to find a solution by applying only a CSS class. If there are any other unicode characters that resemble the desired icon in the style guide more closely, please advise me on that as well.
- Many thanks for your assistance!
Here are the images for reference:
https://i.sstatic.net/tKPLV.png
https://i.sstatic.net/TEFeV.png
The first image shows what I currently have, while the second one displays how it is intended to look like.
.exclamation-red .validation-tooltip-text:before {
border: none;
content: "\f06a";
font-family: fontAwesome;
left: 10px;
position: absolute;
font-size: 20px;
top: 12px;
color: white;
}
Your guidance would be greatly appreciated. Thank you.