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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user