Problem/Motivation
#1493324-165: Inline form errors for accessibility and UX mentions:
There's quite some duplication of logic going on between theme_fieldset and theme|template_preprocess_form_element in the meantime, and it would probably make sense to move all of that into a shared helper function.
It might be best to convert theme_fieldset into twig first, so that both form wrapper functions are using preprocess functions, and once that is done, we can easily move the shared logic into a new preprocess function that is shared between both.
It might be that doing that (or some other followup from #2192419: Use a WCAG-compliant fieldset (fieldgroup) for #type radios/checkboxes will unblock #1493324: Inline form errors for accessibility and UX
Blocking
- #1493324: Inline form errors for accessibility and UX
- #2236789: Styling of inline radios broken: inappropriate trailing colons (breaks EditorImageDialog)
Proposed resolution
Make the shared helper function and the new preprocess function.
Remaining tasks
- clarify/correct the motivation/issue
- ?
User interface changes
No.
API changes
No changes, just additions?
Comments
Comment #1
tim.plunkettThis also blocks #2236789: Styling of inline radios broken: inappropriate trailing colons (breaks EditorImageDialog).
According to sun, #2152209: Convert theme_fieldset() to Twig would help fix this, but I don't understand how. Assigning to him for guidance.
Comment #2
yesct commentedlisting issues this fix is needed or in the issue summary.
---
Is "Make radios and checkboxes form elements" an alternate resolution? Or would that be the same thing?
Comment #3
tim.plunkettWell, before #2192419: Use a WCAG-compliant fieldset (fieldgroup) for #type radios/checkboxes happened, they WERE form elements. So that approach is effectively "Revert the other issue".
Comment #4
mgiffordJust unassigning issues that haven't been developed for a bit in the D8 queue.
Comment #18
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #19
smustgrave commentedWanted to bump 1 more time.
Comment #21
smustgrave commentedWould be good to dive into the code first before closing. If still valid 100% needs an IS update please.
Comment #22
longwaveI don't think this is worth doing. The linked issues were fixed long ago and nobody else has found this issue in the meantime which suggests to me there is no point continuing here.