My task involves altering the HTML provided by a content management system for one of our applications. Specifically, I need to replace all "ul"s with
<mat-icon>check_circle_outline</mat-icon>
instead of the default "."
The challenge lies in the fact that I am unable to directly modify the content, requiring me to find a solution through CSS. Is there a method to incorporate the icon directly into the CSS without utilizing
<mat-icon>check_circle_outline</mat-icon>
?
For instance, using font-awesome, one could achieve this as shown below:
.list-style-checked {
margin-left: 2.5em;
padding: 0;
li {
position: relative;
span {
font-family: "Font Awesome 5 Free";
position: absolute;
left: -2em;
text-align: center;
width: 2em;
line-height: inherit;
&:before {
content: "\f14a";
}
}
}
}
Is there a comparable approach when working with Angular Material?