webcomponents / webcomponents/custom-elements-manifest
Add optional `role` field to `CustomElementDeclaration`
- Dominant language
- TypeScript
- Stars
- 502
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
`ElementInternals` allows element authors to assign implicit roles to elements. `CustomElementDeclaration` should have an optional `role` or `implicitRole` field to document this. Tooling like aXe, lighthouse, or `cem mcp` should use this to perform audits.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the CustomElementDeclaration definition and inspect how declaration fields are represented and validated. Check the existing manifest schema and tests before resolving whether the optional field should be named role or implicitRole; done means aXe, Lighthouse, or cem mcp can consume the documented role information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- accessibility, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100