Skip to content

Commit

Permalink
Merge pull request #214 from nysenate/hotfix--nys-16453-refactor-find…
Browse files Browse the repository at this point in the history
…-my-senator

Restore notice for vacant senate seat
  • Loading branch information
kzalewski authored Jul 11, 2024
2 parents a27a685 + dcac8aa commit 0a088bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@
content: ',';
display: inline-block;
}

.c-find-my-senator .nys-vacant-seat {
font-size: 20px;
font-family: Adelle Light, serif;
color: #666666;
padding-top: 4px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
{{ attach_library('nysenate_theme/district') }}

<div class="c-find-my-senator">
<h2 class="c-container--title">Your Senator</h2>
<div class="nys-title nys-title--district">{{ content.field_senator }}</div>
<h2 class="c-container--title">Your Senator</h2>
{% if content.field_senator.0 is defined %}
<div class="nys-title nys-title--district">
{{ content.field_senator }}
</div>
{% else %}
<div class="nys-vacant-seat">This Senate seat is currently vacant.</div>
{% endif %}
</div>

0 comments on commit 0a088bf

Please sign in to comment.