Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

[ng-aria] 'aria-disabled' attribute must not be set along with the 'disabled' #11830

Closed
@damiengarbarino

Description

@damiengarbarino

Hello,

When using angular aria, if the ng-disabled directive is set on an element and the condition is resolved to 'true', the aria-disabled element is also set automatically.

The W3C mentions that the aria-disabled attribute must not set if the disabled attribute (installed by ng-disabled) is already supported by the DOM element (ex: button).

See: http://www.w3.org/TR/aria-in-html/ look for "disabled"

Use the disabled attribute on any element that is allowed the disabled attribute in HTML5.
Only use the aria-disabled attribute for elements that are not allowed to have a disabled attribute in HTML5

Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions