@Jeff Burnz added this to Genesis last year. Just a simple way to add fieldsets to the advanced form. I just ported it to D8.

It's definitely related to #504962: Provide a compound form element with accessible labels

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Everett Zufelt’s picture

Can you please provide a description of the problem (perhaps with example markup) tha your patch attempts to solve?

mgifford’s picture

This is following from @Jeff Burnz's code in Genesis where he added fieldsets to the advanced search form.

It could well be that we've got a solution for this in Core without it. The checkboxes are certainly one place where we should expect to see core be able to deliver.

Jeff also grouped keyword fields together.

bowersox’s picture

The only place that needs a fieldset is the group of checkboxes called "Only of the type(s)". Screenshot attached showing where this appears.

mgifford’s picture

Status: Active » Needs review

This should have been checked by the bot.

Status: Needs review » Needs work

The last submitted patch, Advanced_Search_Fieldsets-1.patch, failed testing.

mgifford’s picture

Status: Needs work » Needs review
FileSize
2.58 KB

Just a re-roll.

mgifford’s picture

#6: Advanced_Search_Fieldsets-6.patch queued for re-testing.

mgifford’s picture

Issue tags: +a11ySprint

seems good.

mgifford’s picture

Issue tags: -Accessibility, -a11ySprint

#6: Advanced_Search_Fieldsets-6.patch queued for re-testing.

mgifford’s picture

#6: Advanced_Search_Fieldsets-6.patch queued for re-testing.

mgifford’s picture

Issue tags: +Accessibility, +a11ySprint

#6: Advanced_Search_Fieldsets-6.patch queued for re-testing.

mgifford’s picture

I'd just like to add that this one is totally trivial to test on SimplyTest.me.

mgifford’s picture

Yup. They work:

Test that fieldsets still work with simplytest.me

That's highlighting with the WAVE Toolbar too. This patch just addresses the fieldsets.

Someone else has to review the code.

jessebeach’s picture

Status: Needs review » Reviewed & tested by the community

Code looks good. It's just a change to introduce fieldsets into the HTML and it's done well. Setting to RTBC.

mgifford’s picture

Thanks Jesse!

xjm’s picture

#6: Advanced_Search_Fieldsets-6.patch queued for re-testing.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 288619 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.