Skip to content

Required attributes? #1170

@Westbrook

Description

@Westbrook

When sp-progress-bar applied role="progress" to itself the implication is that label (which applies a visible label to the shadow DOM) or aria-label/lledby is required to ensure the accessibility of the element. We'd like to ensure that here and in other locations where element sprout roles onto themselves these sorts of requirements are maintained at more than just the documentation level.

Can TS or lit-plugin or something else support the inclusion of required attributes?

If not, can we do so with a SWC specific linting plugin?

If not, should we add runtime warnings (possibly a development build 🙈) to clarify the absence of these attribute?

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0.0Issues that should be addressed for a 1.0 release!Component: Progress barComponent: Progress circleComponent: ToolingIssue or PR dealing with scripts, workflows, automation, etc. Component prefix is for JiraDev Builda11yIssues or PRs related to accessibility

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions