Skip to content

[ui5-input]: valueStateMessage style issues when no enough space #11241

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

Open
1 task done
Xidai opened this issue Apr 2, 2025 · 2 comments
Open
1 task done

[ui5-input]: valueStateMessage style issues when no enough space #11241

Xidai opened this issue Apr 2, 2025 · 2 comments
Assignees
Labels
bug This issue is a bug in the code TOPIC RD

Comments

@Xidai
Copy link

Xidai commented Apr 2, 2025

Bug Description

Image

As showed in the screenshot above, when there's not enough space for the error message, the style will be a mess.

Affected Component

No response

Expected Behaviour

No response

Isolated Example

https://stackblitz.com/edit/github-fvasrpsw?file=main.js,index.html

Steps to Reproduce

to reproduce in the standalone example, please adjust the height of the viewport to make the space below the input not enough to show all the message, and then refresh the page, then the issue can be reproduced.

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.8.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@Xidai Xidai added the bug This issue is a bug in the code label Apr 2, 2025
@nnaydenow
Copy link
Contributor

Hello colleagues,

The issue is reproducible with plain popover. The value state message text is placed inside the header slot and it doesn't have scroll / truncation mechanism. https://stackblitz.com/edit/github-fvasrpsw-jdeld7og?file=main.js,index.html

This applies to all input components with value state. Please have that in mind when dispatching.

Regards,
Nayden

@hinzzx hinzzx self-assigned this Apr 2, 2025
@hinzzx hinzzx added the TOPIC RD label Apr 2, 2025
@hinzzx
Copy link
Contributor

hinzzx commented Apr 2, 2025

Hi team @SAP/ui5-webcomponents-topic-rd ,

As Nayden found out, this issue is reproducible with plain ui5-popover, please refer to the screenshot below.

Image

As we can see the text in the popover is overflowing, and is being hidden due to overflow: hidden property of the ui5-popup-root CSS class.

The possible solutions that comes to my mind are:

  1. An API that allows popover content (text) to be truncated or to be scrollable or some behaviour that handles this out of the box;
  2. Set dynamically the placement property in the ui5-input popover template based on height and width (but that is more of a workaround for me, and action for another team);

Could you please take over, and assist the reporter ?

Best Regards,
Stoyan

@hinzzx hinzzx removed their assignment Apr 2, 2025
@GerganaKremenska GerganaKremenska self-assigned this Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code TOPIC RD
Projects
Status: New Issues
Development

No branches or pull requests

4 participants