Add aria-pressed to in comments votes component

In order to the users using screen readers know whether the button is pressed
or not.
This commit is contained in:
taitus
2023-05-29 11:21:03 +02:00
parent 10cfa0e59f
commit 5009bf6c37
4 changed files with 71 additions and 3 deletions

View File

@@ -1683,7 +1683,8 @@ table {
.in-favor button {
@include has-fa-icon(thumbs-up, solid);
&:hover {
&:hover,
&[aria-pressed=true] {
color: $like;
}
}
@@ -1691,7 +1692,8 @@ table {
.against button {
@include has-fa-icon(thumbs-down, solid);
&:hover {
&:hover,
&[aria-pressed=true] {
color: $unlike;
}
}