[DynamicPage]: SR announcing "Expanded Header" even if we don't have expanded and collapsable header content in DynamicPage header
Bug Description
We have observed that in the DynamicPage component, the Expanded Header region is present in the accessibility tree even when there is no expanded content in the DynamicPage Header section. We are looking for an attribute or a configuration option that can be used to remove or hide this region when the expanded content is not available.
I have attached the screen recording to get insights of the issue mentioned. We have only Title and Full Screen button in the Dynamic Header Section. And a11y team has an concern for screen reader reading "Header Expanded" as there is not content button or toggle to switch between Expandable and Collapsable content in the Dynamic Page Header.
Actual page in Application where it announce Header Expanded when focus goes into Full Screen Icon Button.
https://github.com/user-attachments/assets/c216f3c6-38a7-40a0-afdb-a08436b5d260
Affected Component
No response
Expected Behaviour
An expanded header region should not be defined if there is no corresponding expanded content.
Isolated Example
https://github.com/user-attachments/assets/c216f3c6-38a7-40a0-afdb-a08436b5d260
Steps to Reproduce
- Go To Dynamic Page Component in https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/layouts-floorplans-dynamicpage--docs
- Remove all the information expect Title and action bar buttons.
- Turn on Screen Reader, using keyboard bring focus to First interactive element in Dynamic Header Section ie, Full Screen Button and see what screen reader announces. ...
Log Output, Stack Trace or Screenshots
https://github.com/user-attachments/assets/8bde7850-6349-4441-a652-5e20aede3d6b
Priority
Medium
UI5 Web Components Version
2.10.1
Browser
Chrome
Operating System
No response
Additional Context
Continuation of https://github.com/SAP/ui5-webcomponents/issues/10927
Organization
No response
Declaration
- [x] I’m not disclosing any internal or sensitive information.
Hi @SAP/ui5-webcomponents-topic-p ,
This issue is duplicate with https://github.com/SAP/ui5-webcomponents/issues/11570 In testing the PR https://github.com/SAP/ui5-webcomponents/pull/11626 for fixing the existing issue fixes this one as well.
The reporter is using 2.10.1, so can you check if downport to 2.10 is an option?
Hello,
This issue should be fixed with the fix of this one: https://github.com/SAP/ui5-webcomponents/issues/11570
Regards, Plamen
This issue has been closed. To reopen, just leave a comment!
Hi @plamenivanov91 @kineticjs , Currently we are in 2.10.0 version, Looks like fix is not available in 2.10.0 is it possible to to downport the fix to 2.10.0?
Currently we are in 2.10.0 version, updating WC version to 2.10.1 will fix the issue?
Hello @Harshithaharsh ,
We are sorry to inform you that such down-port is not possible.
Please update your UI5 web components version to 2.12 or newer in order to consume the fix.
Regards, Plamen Ivanov
This issue has been closed. To reopen, just leave a comment!