const slot = document.createElement("slot");
slot.name = "svg";
root.append(slot);
+
+ this.setAttribute("aria-hidden", "true");
}
private validate(): void {
class FaIcon extends HTMLElement {
connectedCallback() {
this.validate();
+
this.setIcon(this.name, this.solid);
+
+ this.setAttribute("aria-hidden", "true");
}
private validate(): void {
const slot = document.createElement("slot");
slot.name = "svg";
root.append(slot);
+ this.setAttribute("aria-hidden", "true");
}
validate() {
if (this.size === 0) {
connectedCallback() {
this.validate();
this.setIcon(this.name, this.solid);
+ this.setAttribute("aria-hidden", "true");
}
validate() {
if (this.size === 0) {
fa-icon {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
+ -webkit-user-select: none;
font-family: var(--fa-font-family, "Font Awesome 6 Free");
font-size: var(--font-size);
font-weight: var(--fa-font-weight, 400);
line-height: 1;
text-rendering: auto;
+ user-select: none;
&[solid] {
font-weight: 900;