-
Notifications
You must be signed in to change notification settings - Fork 0
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
Address UX feedback on location-based search form #137
Conversation
Pull Request Test Coverage Report for Build 8443128519Details
💛 - Coveralls |
5fc1273
to
6dd44a4
Compare
6dd44a4
to
6b2f589
Compare
6b2f589
to
7bb8f64
Compare
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.
As noted on Slack, I think we should keep the asterisks as the "all fields in this section" type wording is very likely to be overlooked and most people are familiar with the asterisk usage. If UX disagrees, I won't block on that but I do want to make sure we check in with them on that.
Andi warns that the label for the fields may not be marked up correctly. I suspect this should be resolved but I'm fairly early into my coffee.
warning[Element nested in <label> but label[for=basic-search-main] does not match element [id=geobox-minLongitude].](https://www.ssa.gov/accessibility/andi/help/alerts.html?nested_label_for_no_match)
There is some odd keyboard navigation and screen reader behavior in our expandable forms we may want to address (possibly beyond MVP). I'll note the concern here but it is not blocking on this ticket. We should investigate whether we should move the search button to below the form elements. Having it inline means you reach it before you have tabbed through all of the expanded form elements and before you might notice that there are unexpanded form elements that may be of interest. I think this should be a new ticket but noting here so I don't forget to check in with you on whether this has previously come up.
@JPrevost Good point about moving the search button to the end. I hadn't thought about that, and I suspect it's necessary. I'm seeing that warning in ANDI, too, for every geo and advanced field. (I'd been running WAVE, which doesn't mention it.) I'm a little confused by it, because none of those fields are actually nested in the basic search label. However, that label is an empty tag, and none of the others are, so maybe that's what is throwing ANDI off? |
@JPrevost Yep, just confirmed locally that we can clear up the ANDI warnings by marking up the label like this: In this case, I removed the text from the label and used the
|
@JPrevost I added the asterisks back in with a key, made a couple other CSS tweaks, and removed the empty label element. (The title attribute is now on the input, which ANDI likes but WAVE doesn't -- see my comment above.) I also opened this ticket to explore options for the search form submit button. I added it to the post-MVP epic for now. I'd strongly prefer to complete it before then, but I'm not sure how realistic that is with the sprint ending in a few days. I'll put that on Darcy's radar, as well. Let me know if there are any other changes you'd like to see here. Thanks for the detailed review! |
Why these changes are being introduced: This is in response to a UX review of location-based search. Relevant ticket(s): * [GDT-136](https://mitlibraries.atlassian.net/browse/GDT-136) How this addresses that need: * Removes top margin from all `details` elements except the first. * Bolds field labels and normalizes font size for all labels (including hints and descriptions). * Moves placeholder text to description `span` elements and changes "e.g." to "Ex:". * Changes language for distance description/hint. * Changes summary labels for geobox and geodistance. * Changes red asterisk 'required field' indicators to black as indicators, and adds a `p` tag explaining what the asterisks mean beneat each `legend`. Side effects of this change: None.
4eb31e5
to
3ce0ab6
Compare
Note to reviewer: this has not yet passed QA. I was hoping to complete UXWS review before merging, but I'd like to start working on advanced search form updates that are likely to cause merge conflicts with this PR.
Why these changes are being introduced:
This is in response to a UX review of location-based search.
Relevant ticket(s):
How this addresses that need:
details
elements except the first.span
elements and changes "e.g." to "Ex:".p
tag indicating as much below eachlegend
.Side effects of this change:
None.
Developer
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Code Reviewer
(not just this pull request message)
Requires database migrations?
NO
Includes new or updated dependencies?
NO