Skip to content

Commit 01c2635

Browse files
mfosterwclaude
andcommitted
Disable vote link hover/click styles when bill is not open
Add Bootstrap's `pe-none` utility to vote links when the bill status is not OPEN, preventing hover and click color changes on closed bills. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8fcb425 commit 01c2635

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • democrasite/templates/webiscite/snippets

democrasite/templates/webiscite/snippets/vote.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
{# If the user is logged in then add vote-enabling logic, otherwise add a "log in to vote" popup #}
1313
<a href="javascript:;"
1414
class="float-start mt-2 link-success link-underline link-underline-opacity-0 link-underline-opacity-75-hover vote
15-
{% if bill.user_vote is True %}fw-bold{% endif %}"
15+
{% if bill.user_vote is True %}fw-bold{% endif %}
16+
{% if bill.status != bill.Status.OPEN %}pe-none{% endif %}"
1617
{% if bill.status == bill.Status.OPEN %}
1718
{% if user.is_authenticated %}
1819
id="vote-yes-{{ bill.id }}" action="{{ bill.get_vote_url }}" value="vote-yes"
@@ -25,7 +26,8 @@
2526

2627
<a href="javascript:;"
2728
class="float-end mt-2 link-danger link-underline link-underline-opacity-0 link-underline-opacity-75-hover vote
28-
{% if bill.user_vote is False %}fw-bold{% endif %}"
29+
{% if bill.user_vote is False %}fw-bold{% endif %}
30+
{% if bill.status != bill.Status.OPEN %}pe-none{% endif %}"
2931
{% if bill.status == bill.Status.OPEN %}
3032
{% if user.is_authenticated %}
3133
id="vote-no-{{ bill.id }}" action="{{ bill.get_vote_url }}" value="vote-no"

0 commit comments

Comments
 (0)