Skip to content

Commit

Permalink
Remove aria-expanded toggling on advanced search options div.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Jul 8, 2024
1 parent cffb476 commit 5194bb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions application/views/scripts/javascripts/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ if (!Omeka) {
advanced_form.toggleClass('open').toggleClass('closed');
if (advanced_toggle.hasClass('open')) {
advanced_toggle.attr('aria-expanded', true);
advanced_form.attr('aria-expanded', true);
} else {
advanced_toggle.attr('aria-expanded', false);
advanced_form.attr('aria-expanded', false);
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion application/views/scripts/search/search-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<button id="advanced-search" type="button" aria-expanded="false" aria-controls="advanced-form" class="show-advanced button closed" aria-label="<?php echo __('Options'); ?>" title="<?php echo __('Options'); ?>" aria-labelledby="search-form advanced-search">
<span class="icon" aria-hidden="true"></span>
</button>
<div id="advanced-form" class="closed" aria-expanded="false" aria-labelledby="search-form advanced-search" aria-role="region">
<div id="advanced-form" class="closed" aria-labelledby="search-form advanced-search" aria-role="region">
<fieldset id="query-types">
<legend><?php echo __('Search using this query type:'); ?></legend>
<?php echo $this->formRadio('query_type', $filters['query_type'], null, $query_types); ?>
Expand Down

0 comments on commit 5194bb3

Please sign in to comment.