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

Change DropDownButton's MenuFlyout Placement to be left-aligned #1400

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

christineyan4
Copy link
Collaborator

Description

Once PR 9838266: Fix text truncation on DropDownButton MenuFlyout is completed, DropDownButton's MenuFlyout will no longer truncate longer text when text is scaled up. As a result, at the WinUI3 Gallery app-level, we need to set MenuFlyout's Placement to BottomEdgeAlignedLeft, so that longer text will not end result in MenuFlyout covering the NavigationView.

Motivation and Context

This helps resolve an accessibility issue, in tandem with controls-side changes in the above mentioned PR.

How Has This Been Tested?

Ad-hoc testing

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@christineyan4 christineyan4 merged commit ce7f31e into main Nov 9, 2023
2 checks passed
@karkarl karkarl deleted the user/christineyan/dropdown-button-text-scaling branch February 12, 2024 23:50
karkarl pushed a commit that referenced this pull request Jul 15, 2024
## Description
Once [PR 9838266: Fix text truncation on DropDownButton
MenuFlyout](https://microsoft.visualstudio.com/WinUI/_git/microsoft-ui-xaml-lift/pullrequest/9838266)
is completed, DropDownButton's MenuFlyout will no longer truncate longer
text when text is scaled up. As a result, at the WinUI3 Gallery
app-level, we need to set MenuFlyout's Placement to
BottomEdgeAlignedLeft, so that longer text will not end result in
MenuFlyout covering the NavigationView.

## Motivation and Context
This helps resolve an accessibility issue, in tandem with controls-side
changes in the above mentioned PR.

## How Has This Been Tested?
Ad-hoc testing

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

---------

Co-authored-by: Christine Yan <christineyan@microsoft.com>
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.

None yet

2 participants