-
Notifications
You must be signed in to change notification settings - Fork 7
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
Dialog fix #104
Dialog fix #104
Conversation
<a | ||
class="nav__link" | ||
@click="${this._openSearchInterstitial}" | ||
href="https://www.courtlistener.com/opinion/" | ||
>Search</a | ||
> |
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 think this link element was likely another remnant of a past development effort — potentially before the dialog existed. I swapped it out for a button, which typically toggles a dialog.
} | ||
|
||
render() { | ||
return html` | ||
<div> |
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 was probably a remnant from past development efforts. It's not functionally needed, so I removed it.
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.
Thank you for taking care of this, and for cleaning up those subtle bugs along the way!
LGTM!
What this does
This primary makes an accessibility fix to a dialog that is triggered by clicking the "Search" option in the main navigation for the CAP static project, with some small additional improvements.
Screenshots
The dialog now includes a "close" button to dismiss it and return to the previously focused element. The button's close icon itself is 24x24 but the total target size for the button is substantially larger — to meet guidelines outlined by WCAG 2.5.5 AAA for the minimum target size for pointer inputs.
Additionally, the dialog no longer hides content that overflows its container. Instead, a browser will now natively provide a scroll to surface additional content: