Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui5-list]: A11Y - no data text is truncated depending on value #10346

Open
1 task done
caroline-ferri opened this issue Dec 9, 2024 · 1 comment · May be fixed by #10934
Open
1 task done

[ui5-list]: A11Y - no data text is truncated depending on value #10346

caroline-ferri opened this issue Dec 9, 2024 · 1 comment · May be fixed by #10934
Assignees
Labels
ACC bug This issue is a bug in the code Medium Prio TOPIC P

Comments

@caroline-ferri
Copy link

Bug Description

Depending on the value supplied for the no data text property, and the zoom/width of the list, the no data text list item is frequently truncated. Truncation of one line text violates ACC-282 Responsive Design.

Affected Component

ui5-list

Expected Behaviour

When a string for the no data text property is provided that is too long from the current list item width, the text should wrap to ensure there is no loss of content.

Isolated Example

https://sap.github.io/ui5-webcomponents/play/#eyJpbmRleC5odG1sIjp7Im5hbWUiOiJpbmRleC5odG1sIiwiY29udGVudCI6IjwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuPCFET0NUWVBFIGh0bWw-XG48aHRtbCBsYW5nPVwiZW5cIj5cblxuXG5cbjxoZWFkPlxuICAgIFxuICAgIDxzdHlsZT5cbiAgICAgICo6bm90KDpkZWZpbmVkKSB7XG4gICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICB9XG5cbiAgICBodG1sIHtcbiAgICAgIGZvcmNlZC1jb2xvci1hZGp1c3Q6IG5vbmU7XG4gICAgfVxuICAgIDwvc3R5bGU-XG5cbiAgICBcbiAgICA8c3R5bGU-XG4gICAgICAqOm5vdCg6ZGVmaW5lZCkge1xuICAgICAgICBkaXNwbGF5OiBub25lO1xuICAgICAgfVxuXG4gICAgaHRtbCB7XG4gICAgICBmb3JjZWQtY29sb3ItYWRqdXN0OiBub25lO1xuICAgIH1cbiAgICA8L3N0eWxlPlxuXG4gICAgPG1ldGEgY2hhcnNldD1cIlVURi04XCI-XG4gICAgPG1ldGEgbmFtZT1cInZpZXdwb3J0XCIgY29udGVudD1cIndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjBcIj5cbiAgICA8dGl0bGU-U2FtcGxlPC90aXRsZT5cbjwvaGVhZD5cblxuPGJvZHkgc3R5bGU9XCJiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1zYXBCYWNrZ3JvdW5kQ29sb3IpXCI-XG4gICAgPCEtLSBwbGF5Z3JvdW5kLWZvbGQtZW5kIC0tPlxuXG4gICAgPHVpNS1saXN0IHNlbGVjdGlvbi1tb2RlPVwiTm9uZVwiIGhlYWRlci10ZXh0PVwiTm8gRGF0YVwiIG5vLWRhdGEtdGV4dD1cIlRoaXMgaXMgYSBubyBkYXRhIGF2YWlsYWJsZSBzdHJpbmcgdGhhdCB3aWxsIG5lZWQgdG8gYmUgd3JhcHBlZCBvbiB6b29tIG9yIHdpbmRvdyByZXNpemVcIj48L3VpNS1saXN0PlxuICAgIDwhLS0gcGxheWdyb3VuZC1mb2xkIC0tPlxuICAgIDxzY3JpcHQgdHlwZT1cIm1vZHVsZVwiIHNyYz1cIm1haW4uanNcIj48L3NjcmlwdD5cbjwvYm9keT5cblxuPC9odG1sPlxuPCEtLSBwbGF5Z3JvdW5kLWZvbGQtZW5kIC0tPlxuIn0sIm1haW4uanMiOnsibmFtZSI6Im1haW4uanMiLCJjb250ZW50IjoiLyogcGxheWdyb3VuZC1oaWRlICovXG5pbXBvcnQgXCIuL3BsYXlncm91bmQtc3VwcG9ydC5qc1wiO1xuLyogcGxheWdyb3VuZC1oaWRlLWVuZCAqL1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzL2Rpc3QvTGlzdC5qc1wiO1xuaW1wb3J0IFwiQHVpNS93ZWJjb21wb25lbnRzL2Rpc3QvTGlzdEl0ZW1TdGFuZGFyZC5qc1wiO1xuIn19

Steps to Reproduce

  1. navigate to the truncation sample
  2. Resize the list window or zoom until the list item is truncated
  3. Take note of the loss of content for the no data text string

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

latest

Browser

Chrome

Operating System

Mac OS

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@plamenivanov91
Copy link
Contributor

Hello @SAP/ui5-webcomponents-topic-p,

Could you please look if the List really violates ACC-282 Responsive Design?

Regards,
Plamen Ivanov

@NakataCode NakataCode self-assigned this Feb 14, 2025
@NakataCode NakataCode moved this from Issues to In Progress in Maintenance - Topic P Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACC bug This issue is a bug in the code Medium Prio TOPIC P
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants