-
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
Accessibility issues #1447
Conversation
… an accessibilty error.
…r constrast issue
…when viewing grouped search results
<div class='breadcrumb-links'> | ||
<%= rendered_breadcrumbs %> | ||
</div> | ||
<dt> |
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 like where you're going with it, but as far as I understand it, a <dd>
can't be a child of <dt>
. The missing indentation makes it a bit confusing. I wonder if a small tweak like this would work:
<dt class="visually-hidden">Collection Context</dt>
<dd>...</dd>
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.
@seanaery That seems to work. I've pushed up the change.
…rarchical sidebar link
@@ -29,10 +29,12 @@ | |||
// "view more"/"view less" text swaps when content is expanded | |||
.view-more { | |||
display: inline; | |||
font-size: 1.5rem; |
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.
This looks too big in the UI -- it makes the view more/less link bigger than the title header. I'm curious what the accessibility violation is with the existing style. Looks like it's --bs-link-color
which translates to #0D6EFD
which is 4.5:1
on white. If it's used on any non-white backgrounds I think it'd be better to darken it in those contexts (can even use BS5
shade-color()
functions).
@@ -22,10 +22,6 @@ $hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3 | |||
} | |||
} | |||
|
|||
.al-hierarchy-highlight > .documentHeader { |
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.
…ference to the selected hierarchical item.
This is looking great and I am excited to get all these fixes into core. These are big important wins -- thanks for working through all of this. I completed a review and left a few inline comments. Just a couple more thoughts, taking an updated look at the branch:
I wonder if you might either 1) break the changes from this PR out into 5-7 smaller separate PRs; or alternatively 2) make a copy of the branch, do an interactive rebase, e.g. |
Fix for: #1395
Fix for #1393
Fix for #1430
Also addresses color contrast issues and duplicate ids in search results
Should fix all accessibility issues in arclight.