Skip to content

typescript: TagValue is missing many values #2312

Closed
@stephenmathieson

Description

The TagValue type is missing many values. This makes setting these tags impossible when using the TypeScript compiler (as most Attest products do).

Tags that are not allowed by the definition, but are used in axe itself

Each of these tags can be seen in the doc/rule-descriptions.md file.

  • cat.aria
  • cat.color
  • cat.forms
  • cat.keyboard
  • cat.language
  • cat.name-role-value
  • cat.parsing
  • cat.semantics
  • cat.sensory-and-visual-cues
  • cat.structure
  • cat.tables
  • cat.text-alternatives
  • cat.time-and-media
  • section508.22.a
  • section508.22.f
  • section508.22.g
  • section508.22.i
  • section508.22.j
  • section508.22.n
  • section508.22.o
  • wcag111
  • wcag121
  • wcag122
  • wcag131
  • wcag143
  • wcag211
  • wcag221
  • wcag224
  • wcag241
  • wcag242
  • wcag244
  • wcag2aaa
  • wcag311
  • wcag312
  • wcag325
  • wcag332
  • wcag411
  • wcag412
Additional tags used by Attest, but are not seen in the rule-descriptions.md file

Used by Attest, but not seen in axe-core:

  • cat.time
  • section508.22.b
  • wcag125
  • wcag125
  • wcag144

I'm happy to update the TagValue type to include these tags, but this doesn't seem like a sustainable practice, as we're going to eventually add more tags (and forget to add them).

Thoughts on how to continue?

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions