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

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

Open
umerfaruk opened this issue Jun 6, 2021 · 0 comments
Open

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

umerfaruk opened this issue Jun 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@umerfaruk
Copy link

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)
@mikbry mikbry added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants