Skip to content

Commit

Permalink
advanced job search form fix, remove aria-expanded.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelspellacy committed Aug 22, 2024
1 parent 1743142 commit a1c133f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions a11y/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function initDynamicPatch() {

function initStaticPatch() {

fixAdvancedSearchForm();
fixCookieManagement();
fixJobDescription();
fixJobList();
Expand All @@ -134,6 +135,23 @@ function initStaticPatch() {

}

// Accessibility Patch: Advanced Search Form

function fixAdvancedSearchForm() {

var searchForm = document.querySelectorAll(".advanced-search-form");

searchForm.forEach(function(form, i){

var formID = (i + 1); // Not used (yet).
var searchFormFields = form.querySelector(".advanced-search-form-fields");

// Fix: Remove aria-expanded from .advanced-search-form-fields.

searchFormFields.removeAttribute("aria-expanded");

}

// Accessibility Patch: Alt Attribute (Utility)

function fixAltAttribute() {
Expand Down

0 comments on commit a1c133f

Please sign in to comment.