active state on org link in main nav

This commit is contained in:
Rachid Mrad 2024-08-28 12:59:44 -04:00
parent 9cd0e15f8a
commit d72b8f7b3e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
@use "uswds-core" as *;
td,
tr th {
th {
vertical-align: top;
}

View file

@ -45,7 +45,7 @@
<li class="usa-nav__primary-item">
{% url 'organization' as url %}
<!-- Move the padding from the a to the span so that the descenders do not get cut off -->
<a href="{{ url }}" class="usa-nav-link padding-y-0">
<a href="{{ url }}" class="usa-nav-link padding-y-0 {% if request.path == '/organization/' %} usa-current{% endif %}">
<span class="ellipsis ellipsis--23 ellipsis--desktop-50 padding-y-1 desktop:padding-y-2">
{{ portfolio.organization_name }}
</span>