-
Notifications
You must be signed in to change notification settings - Fork 26
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
Accessibility issues #1447
Closed
Closed
Accessibility issues #1447
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1c4d357
Fix issue with breadcrumbs having invalid markup
lfarrell 7f73c69
Remove aria-hidden attribute, as the element is visible, which causes…
lfarrell 0266078
Bump up size of more/less text to fix color contrast accessibility issue
lfarrell 7552de5
Remove background color and make highlighted element bold. Fixes colo…
lfarrell fa63a03
Override BL partial to remove id that is causing duplicate id issues …
lfarrell e2a4e2e
Wrap grouped results in dt tag as their contents have dt and dd tags
lfarrell 58bd0d9
Update test selectors
lfarrell 00ab1c3
Don't link to currently selected document in the tree. See https://gi…
lfarrell 8b02e93
Move dd tag outside of dt tag and remove highlighting of selected hie…
lfarrell 713f7ea
Show "View More" links as a darker color, and add back in a visual re…
lfarrell 6ae78a2
Add "documents" id
lfarrell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
9 changes: 6 additions & 3 deletions
9
app/components/arclight/search_result_breadcrumbs_component.html.erb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<div class='breadcrumb-links'> | ||
<%= rendered_breadcrumbs %> | ||
</div> | ||
<dt class="visually-hidden">Collection Context</dt> | ||
<dd> | ||
<div class='breadcrumb-links'> | ||
<%= rendered_breadcrumbs %> | ||
</div> | ||
</dd> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% # Override to remove id="documents" on div. When documents are grouped it causes duplicate id issues %> | ||
<% # https://github.com/projectblacklight/blacklight/blob/v8.1.0/app/views/catalog/_document_list.html.erb %> | ||
<% # container for all documents in index list view -%> | ||
<% view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type) %> | ||
<div class="al-document-listings documents-<%= view_config&.key || document_index_view_type %>"> | ||
<% document_presenters = documents.map { |doc| document_presenter(doc) } -%> | ||
<%= render view_config.document_component.with_collection(document_presenters, partials: view_config.partials, counter_offset: @response&.start || 0) %> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<% # container for all groups in index view -%> | ||
<div class='al-grouped-results'> | ||
<div id="documents" class='al-grouped-results'> | ||
<%= render (blacklight_config.view_config(document_index_view_type).group_component || Arclight::GroupComponent).with_collection(@response.groups) %> | ||
</div> |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave this in -- I think it is useful to visually highlight the currently selected item. And now that you have unlinked the current highlighted item, its text color is black so there's no contrast issue to resolve on the highlighted document.