microsoft / microsoft/microsoft-ui-xaml

[ColorSpectrum] Mirrored when app flow direction is RightToLeft

Open
#10,798 0 comments 0 reactions 0 assignees View on GitHub
area-ColorPicker bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Color Spectrum is mirrored when the FlowDirection is inherited as `RightToLeft`

### Why is this important?

This is just unexpected behavior for the RTL language environment. Graphs still flow LTR, so the color spectrum should still have low hue values on the left and high hue on the right by default.

(If a developer really wants to mirror it, they can explicitly set the FlowDirection on the control, but its default style should override it to LeftToRight)

### Steps to reproduce the bug

Add `FlowDirection="RightToLeft"` at any layer above the ColorPicker or ColorSpectrum.

### Actual behavior

In RightToLeft mode, lower hue values appear on the right
Image

### Expected behavior

Even when in RightToLeft mode, lower hue values should appear on the left
Image

### Screenshots

_No response_

### NuGet package version

None

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by applying FlowDirection="RightToLeft" above a ColorPicker or ColorSpectrum, then locate the ColorSpectrum control and its default style. Verify that inherited RTL leaves lower hue values on the left while an explicitly set control direction can still mirror it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.