I'm using font awesome 5 pseudo elements to attach an :after tag to my element like this
&:after {
content: "\f068";
font-weight:400;
color:$brandRed;
float:right;
font-family: "Font Awesome 5 Pro";
}
Which is adding the content in fine, but the styling that I add, specifically float:right is not added to the SVG that is generated with font awesome?
As shown in the image above, the SVG element is loaded correctly, but the :after tag has the float:right styling on it, and the SVG does not have any of the styling specified? Why is it not taking over the styling?
According to their docs, they say to add it like this, with all of your stylings
.login::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f007";
}
Why are the stylings not carrying over?
