-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix catalog search dropdown #6867
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On the home page when the user is logged in, the dropdown next to the search was not changing when the user selects a different option. This was because the javascript was changing the data-search-element="label" span but what is actually being shown is the aria-hidden="true" span. Before: <span class="sr-only" data-search-element="label">All</span> <span aria-hidden="true">All</span> *user selects a different option* <span class="sr-only" data-search-element="label">My Works</span> <span aria-hidden="true">All</span> After: <span class="sr-only" data-search-element="label">All</span> <span aria-hidden="true">All</span> *user selects a different option* <span class="sr-only" data-search-element="label">My Works</span> <span aria-hidden="true">My Works</span>
This change will align how Bootstrap 4 does dropdown menus. The exmaples that I see in the documentation show that it should be in a <div> tag with <a> tags inside of it.
Test Results 17 files ±0 17 suites ±0 2h 17m 11s ⏱️ - 4m 15s Results for commit 9b2ffae. ± Comparison against base commit 59a42ad. This pull request removes 273 and adds 273 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
orangewolf
approved these changes
Aug 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fix catalog search form dropdown not changing
7a2d476
On the home page when the user is logged in, the dropdown next to the
search was not changing when the user selects a different option. This
was because the javascript was changing the data-search-element="label"
span but what is actually being shown is the aria-hidden="true" span.
Before:
After:
Change html structure for search dropdown
9b2ffae
This change will align how Bootstrap 4 does dropdown menus. The
exmaples that I see in the documentation show that it should be in a
Guidance for testing, such as acceptance criteria or new user interface behaviors:
All
by default) and choose something elseType of change (for release notes)
notes-bugfix
Bug FixesChanges proposed in this pull request:
9c720eb8-0f74-4044-8de4-8a4521a5239a.mp4
@samvera/hyrax-code-reviewers