[Housekeeping] Investigate use of data-element in docs #3772
Labels
accessibility
housekeeping
👶🏻 New
For new issues before prioritisation and refinement
NOT Prioritized
Issue not yet prioritized and added to a Milestone
NOT Tech refined
Needs Tech kickoff - solution outlined and agreed
Describe the housekeeping request
In the cookbook, mainly on the item showcase, we use
<data>
liberally. I do think it is wrong use of the element, as it should have avalue
attribute with a machine-readable version of the content in the element.In a lot of the examples, the data is already machine-readable, and adds no value.
In addition, the missing value appears in automated tests as a accessibility issue for all consuming teams copying our approach.
Are there any additional context?
MDN Docs for data
The text was updated successfully, but these errors were encountered: