Fix toggle-comments button pressed state
This commit is contained in:
parent
a00d9cbff1
commit
9dcb054973
2 changed files with 5 additions and 1 deletions
|
|
@ -119,6 +119,10 @@ input[type="checkbox"]:checked + .btn--primary {
|
||||||
.btn--transparent:hover {
|
.btn--transparent:hover {
|
||||||
--background: var(--color-white-05);
|
--background: var(--color-white-05);
|
||||||
}
|
}
|
||||||
|
.btn[aria-pressed="true"]:hover {
|
||||||
|
--background: var(--color-primary-hover);
|
||||||
|
--border-color: var(--color-primary-hover);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:focus-visible {
|
.btn:focus-visible {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
id="toggle-comments"
|
id="toggle-comments"
|
||||||
aria-pressed="false"
|
:aria-pressed="isCommentsOpen"
|
||||||
class="btn btn--transparent"
|
class="btn btn--transparent"
|
||||||
data-icon="comment"
|
data-icon="comment"
|
||||||
@click="isCommentsOpen = !isCommentsOpen"
|
@click="isCommentsOpen = !isCommentsOpen"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue