Skip to content

[Feature Request]: Menu, choose alignment of Menu tooltip #10765

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

Closed
1 task done
ybesnehard opened this issue Feb 4, 2025 · 5 comments · Fixed by #11313
Closed
1 task done

[Feature Request]: Menu, choose alignment of Menu tooltip #10765

ybesnehard opened this issue Feb 4, 2025 · 5 comments · Fixed by #11313

Comments

@ybesnehard
Copy link

Feature Request Description

Hello, would it be possible to add a property to set the alignment of the tooltip. Today it is centered but would be great to be able to align it to the left or the right

Actual
Image

Proposed Solution

Proposal:

Image

Proposed Alternatives

No response

Organization

SAP

Additional Context

For SAP Build Process Automation

Priority

Medium

Privacy Policy

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

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

Please take a look of this feature request.

Best Regards,
Nikolay Hristov

@DMihaylova DMihaylova self-assigned this Feb 6, 2025
@DMihaylova
Copy link

Colleagues, could you check whether that's a regression and if yes, please fix it.
In version 1 it's aligned as per the available space and by default it's as per the screenshot in the proposed solution.

@DMihaylova
Copy link

Hi @ybesnehard,

Would it suit your needs if we implement the alignment from the proposed solution (in the particular case - left alignment, however depending on the available space it could be right) or you also have use cases where the current centered alignment is needed?

Thanks & Regards,
Diana

@ybesnehard
Copy link
Author

Hi @DMihaylova,

We have no use case for the Middle alignment. If we have left alignment and right alignment depending on the available space it would be perfect for us

Many Thanks,
Yannick

@DMihaylova DMihaylova moved this from New to In Progress in Planning - Topic B Apr 4, 2025
didip1000 added a commit that referenced this issue Apr 16, 2025
This change introduces a new `horizontalAlign` property to `ui5-menu`, similar to what's available in `ui5-popover`. It allows users to control the menu's horizontal alignment.

The default value is `start`, but it can also be set to `end`, `center`, or `stretch`.

Usage:
Setting the property to end as follows will align the menu to the end of the opener button:

```HTML
<ui5-menu horizontal-align="End">
    <ui5-menu-item ...
</ui5-menu>
```

Fixes: #10765
@github-project-automation github-project-automation bot moved this from In Progress to Completed in Planning - Topic B Apr 16, 2025
Copy link

This issue has been closed. To reopen, just leave a comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

3 participants