Active
Project:
Drupal core
Version:
main
Component:
inline_form_errors.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jan 2017 at 08:34 UTC
Updated:
29 May 2023 at 17:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andrewmacpherson commentedTag clean up: "accessibility" is the preferred one. The "a11y" tag doesn't have many issues so I'm moving them all to "accessibility".
Comment #3
alexdmccabeI took a look at this, and I wasn't able to reproduce it, I don't think. Am I missing something?
Comment #4
dmsmidtThanks for checking this out, I'm not 100% sure on which element you triggered the error, but from the image it looks like the three errors are for required fields.
In that case the errors are set against the elements inside the table and not the table it self. This issue is about the case that the errors are set on the table element, not on the children.
Checkout comment #2509268-55: Inline errors repeated on child elements in module uninstall form, the patch attached wasn't used because it was overkill. But maybe it is an starting point for the table element in general.
Comment #5
alexdmccabeI see, so the table itself should have the error, I thought the issue was that child elements would not show inline errors properly.
I added a details element with a single textfield element in it for comparison, and I kept a single textfield with no parent, also for comparison's sake. I am triggering errors on the lone textfield, the table element, and the details element.
So that's the issue, it should be working like the details element does?
Comment #6
dmsmidtIndeed, an error above the table would be the way to go I think (like we do for details).
Normally we show the error below an element, but for grouping elements we seem to have settled on showing them at the top.
I think we have a problem in cases that a table has no label/title, in that case we can't create a fragment link in the summary (#933004: Test that all form elements have a title for accessibility).
But let's start without worrying about that.
Comment #19
mgiffordTagging for https://www.w3.org/WAI/WCAG21/Understanding/error-identification.html