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

select component with dir="rtl" down arrow incorrectly positioned #1551

Closed
kendalblythe opened this issue Jan 24, 2023 · 1 comment
Closed

Comments

@kendalblythe
Copy link

What version of daisyUI are you using?

2.47.0

Describe your issue

I have the following select component defined.

<select value="en" className="select select-bordered select-sm max-w-xs">
  <option value="de">German</option>
  <option value="en">English</option>
  <option value="es">Spanish</option>
</select>

If I set dir="rtl" on the html element, the down arrow is incorrectly positioned to the right of the select component.

image

To fix, I added the following CSS.

[dir='rtl'] .select {
  background-position: 16px calc(1px + 50%), 20px calc(1px + 50%);
}

The down arrow is now correctly positioned to the left of the select component.

image

What browsers are you seeing the problem on?

Chrome

Reproduction URL (optional)

No response

@kendalblythe kendalblythe changed the title bug: select component with dir="rtl" background down arrow incorrectly positioned select component with dir="rtl" down arrow incorrectly positioned Jan 24, 2023
@kendalblythe
Copy link
Author

I also have tailwindcss-flip installed.

    "tailwindcss-flip": "1.0.0",

And have plugin defined.

  plugins: [require('daisyui'), require("tailwindcss-flip")],

inorganik pushed a commit to inorganik/daisyui that referenced this issue Feb 7, 2023
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

No branches or pull requests

1 participant