hathitrust / firebird-common

Other
0 stars 0 forks source link

Dev 1165 advanced search form #81

Closed carylwyatt closed 6 months ago

carylwyatt commented 6 months ago

Resolves some of #71 , #72

Fixes for critical advanced search form issues:

Other fixes:

to test

This is staged on dev-3: Advanced Search page, either in Catalog or Full-text.

boolean operators

To test the AND/OR boolean operator radio buttons, you'll need a screen reader. If you test in on prod, it's doing something like this:

image

Because all the AND buttons had the same id/for attributes, they were all being read together like "AND AND AND" but if you use a screen reader on dev-3 and tab through this version of the form, it should read the ANDs and ORs separately now.

Also, you may notice that the current version has this legend that says "Boolean operator for field 0 and field 1", and I fixed that, too. It will now say "Boolean operator for field 1 and field 2" and 2/3, 3/4 depending on which fieldset you're in.

filterable selection list

You don't need the screen reader for this one, but it doesn't hurt. Tab through the language and format selection lists and select an item using the space bar. There should be a dark orange focus ring around unselected items, and selected items should have a black focus ring.

netlify[bot] commented 6 months ago

Deploy Preview for hathitrust-firebird-common ready!

Name Link
Latest commit e180f0981dc59690e75000cf5b4c280fde675d9d
Latest deploy log https://app.netlify.com/sites/hathitrust-firebird-common/deploys/66427eaec482c20008800513
Deploy Preview https://deploy-preview-81--hathitrust-firebird-common.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

carylwyatt commented 6 months ago

Thank you for your review, @mwarin! I'll take a look at the first two screen reader issues. There are more advanced search form issues from deque and I can definitely address these when those are being worked on. (See https://github.com/hathitrust/firebird-common/issues/72 for example "dropdown fields don't have descriptive labels")

As for number three, I agree, there is some wonky margin at play with the focus style. Gayathri will be designing all-new focus styles and I didn't want to spend too much time tinkering with this "placeholder" style that will be replaced probably next week.

I will merge and keep these in mind for future work!