SAP / ui5-webcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
https://sap.github.io/ui5-webcomponents-react/
Apache License 2.0
444 stars 100 forks source link

[A11y][SF][Dialog]: Truncated dialog title text with ellipsis #6071

Closed Brahmansh closed 4 months ago

Brahmansh commented 4 months ago

Describe the bug

We are using Dialog component with headerText property. With zoom settings and with 320 px viewport we observed that long dialog title is getting truncated with ellipsis.

Isolated Example

No response

Reproduction steps

https://sap.github.io/ui5-webcomponents-react/?path=/docs/modals-popovers-dialog--docs Click on 'Open dialog' button and replace header text with really long text and reduce the screen size to see ellipsis in the header.

Expected Behaviour

Dialog title should not be truncated and should be fully visible.

At 1280 px view port width and 200% zoom page content is expected to reflow without any loss/truncation of content. At 320 px viewport width, the page contents is expected to scale and reflow to fit the resized viewport without any loss of data or functionality.

Screenshots or Videos

No response

UI5 Web Components for React Version

1.29.4

UI5 Web Components Version

2.0.1

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

No response

Organization

SF

Declaration

Lukas742 commented 4 months ago

Hi @Brahmansh

if not enough space is available, the headerText is truncating its content by design. To prevent that you could:

Since the current behavior is following the intended design, I'm going to close this issue.