a11y(styles): use empty content for pseudo-elements to prevent screen readers from reading symbols

This commit is contained in:
Moamal-2000
2026-09-28 22:51:04 +03:00
parent 2adc26bd9c
commit 98fa00622a
3 changed files with 6 additions and 6 deletions
@@ -18,7 +18,7 @@
}
.searchBox::before {
content: ">";
content: ">" / "";
position: absolute;
left: 1rem;
top: 50%;
+4 -4
View File
@@ -138,7 +138,7 @@
}
.loading::after {
content: "...";
content: "..." / "";
animation: dots 1.5s infinite;
}
@@ -163,15 +163,15 @@
0%,
20% {
content: ".";
content: "." / "";
}
40% {
content: "..";
content: ".." / "";
}
60%,
100% {
content: "...";
content: "..." / "";
}
}
+1 -1
View File
@@ -270,7 +270,7 @@ body::after {
/* God bless AI for this selector */
label:has(+ .modal-input[required])::after {
content: "*";
content: "*" / "";
margin-left: 5px;
color: var(--accent);
}