Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Conversation

@Adnan-cds
Copy link
Contributor

@Adnan-cds Adnan-cds commented Feb 2, 2021

At the moment, we are preparing the field Id value, used in field templates,
from its fieldname. This means multiple use of a particular field results in
duplicate Ids in the markup. This is invalid. To resolve this, we need to
ensure that field Ids are unique.

At the moment, we are preparing the the field Id value, used in field templates,
from its fieldname.  This means *multiple* use of a particular field results in
duplicate Ids in the markup.  This is invalid.  To resolve this, we need to
ensure that field Ids are unique.
@Adnan-cds Adnan-cds requested a review from danchamp February 9, 2021 12:06
@Adnan-cds Adnan-cds added bug Something isn't working accessibility Accessibility issue labels Feb 9, 2021
@Adnan-cds
Copy link
Contributor Author

This issue was picked up by Axe the accessibility checker.

FAO @danchamp @tom-steel @willguv

@Adnan-cds
Copy link
Contributor Author

Thanks Dan. That was quick! Merging...

@Adnan-cds Adnan-cds merged commit 24f7947 into master Feb 9, 2021
@danchamp
Copy link
Collaborator

danchamp commented Feb 9, 2021

Thanks Dan. That was quick! Merging...

It's a good catch! Programmatically generated id attributes are easily overlooked and problems often not detected if only tested with one field of the type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

accessibility Accessibility issue bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants