Skip to content

Colour selection is confusing in right-to left view #167

Open
@umerfaruk

Description

@umerfaruk

Describe the bug
When control with website in right to left lanuages, its selection is not correctly shown on the color map. It appears as a elongated bar instead of a circle. Also the of color selector is inverted. In the attached screen shot you can see that the selection is for the dark green but it has chosen the light green color in the selection.

To Reproduce
Steps to reproduce the behavior:

  1. Import and use the control in your website
<ColorPicker   id="secondaryColor"   disableAlpha   aria-describedby="secondaryColor"   name="secondaryColor"
 />
  1. Click on the control to select color and it will select correct color according to your selection point on color gradient.
  2. Make application dir to be rtl
  3. Click on the control to select color on color gradient.
  4. When color is selected in rtl mode it is not correct

Expected behavior
In the direction RTL the background color gradient should be inverted as well. Also the selection circle that appears on the color gradient is drawn as an elongated bar instead of circle.

Screenshots

In Left-to-right mode

image

In Right-to-Left mode

image

  • OS: Windows 10
  • Browser : Microsoft Edge
  • Version : 91.0.864.41 (Official build) (64-bit)
  • Browser : Firefox
  • Version 89.0 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions