Skip to content

feat(ui5-menu): introduce HorizontalAlign property #11313

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

Merged
merged 2 commits into from
Apr 16, 2025
Merged

feat(ui5-menu): introduce HorizontalAlign property #11313

merged 2 commits into from
Apr 16, 2025

Conversation

didip1000
Copy link
Contributor

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:

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

The menu will look as follows:

Fixes: #10765

@didip1000 didip1000 marked this pull request as ready for review April 15, 2025 13:32
@didip1000 didip1000 merged commit 7a287a1 into main Apr 16, 2025
12 checks passed
@didip1000 didip1000 deleted the menu-prop branch April 16, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Menu, choose alignment of Menu tooltip
2 participants