Skip to content

Commit

Permalink
Resolve empty search boxes bug (#4660)
Browse files Browse the repository at this point in the history
* switch from aria-label to aria-hidden

* add display none

* no inline styles
  • Loading branch information
danswick authored Jan 24, 2025
1 parent 719dff6 commit e84353c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions backend/dissemination/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,26 @@ <h3>Filters</h3>
</div>

{% comment %} Hidden page input for use when clicking pagination buttons {% endcomment %}
<input class="usa-input"
aria-label="Page"
<input class="usa-input audit-search-pagination-hidden"
id="page"
name="page"
type="number"
value="{{ page }}"
aria-hidden="true"
hidden />

{% comment %} Hidden order and direction inputs for use when clicking a sort button in the table header {% endcomment %}
<input class="usa-input"
aria-label="Order by"
<input class="usa-input audit-search-pagination-hidden"
id="order_by"
name="order_by"
value="{{ order_by }}"
aria-hidden="true"
hidden />
<input class="usa-input"
aria-label="Order direction"
<input class="usa-input audit-search-pagination-hidden"
id="order_direction"
name="order_direction"
value="{{ order_direction }}"
aria-hidden="true"
hidden />
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion backend/static/scss/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
background-image: url('../img/usa-icons/arrow_drop_up.svg');
}

#orientation-toggle {
#orientation-toggle, .audit-search-pagination-hidden {
display: none;
}
}
Expand Down

0 comments on commit e84353c

Please sign in to comment.