Skip to content

[ui5-li]: accessibilityAttributes API doesn't work as expected #12467

@unazko

Description

@unazko

Bug Description

The accessibilityAttributes API of the ui5-li doesn't seem to work.

Affected Component

ui5-li

Expected Behaviour

When the accessibilityAttributes are defined that should result in particular attributes appearing in the list item element.

Isolated Example

https://stackblitz.com/edit/js-mhnaa2?file=index.js,index.html

Steps to Reproduce

We have:

accessibilityAttributes = {
    hasPopup: "menu"
}

for both the ui5-button and the ui5-li items.

Observe that the ui5-button has aria-haspopup=menu attribute while the ui5-li elements do not have this attribute.

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

latest

Browser

Chrome

Operating System

macOS

Additional Context

No response

Organization

No response

Declaration

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

Metadata

Metadata

Assignees

Labels

ACCTOPIC PbugThis issue is a bug in the code

Type

No type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions