Skip to content

[ui5-button][a11y]: support the aria-pressed property in accessibilityAttributes #11784

@caroline-ferri

Description

@caroline-ferri

Feature Request Description

Currently there is no way to suggest that a specific button is selected via screenreader. When a button is selected we expect it to be read out as selected. In order to support this, the web component must support a selected state or the aria-pressed property.

Current accessibility attributes : https://sap.github.io/ui5-webcomponents/components/main/Button/#accessibilityattributes

Note: the ToggleButton https://sap.github.io/ui5-webcomponents/components/ToggleButton/ supports this behavior. However, our current use case does not fully fit the Toggle Button's functionality to select/deselect or do/undo with the same button.

Proposed Solution

Add the aria-pressed property to the list of supported accessibility attributes.

Proposed Alternatives

No response

Organization

SFSF

Additional Context

No response

Priority

Medium

Privacy Policy

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions