Description
What version of @tailwindcss/forms are you using?
v0.3.4
What version of Node.js are you using?
v14.0.0
What browser are you using?
Chrome, Firefox
What operating system are you using?
Windows
Reproduction repository
https://github.com/let-lc/tailwindcss-forms/tree/rtl-issue-reproduction
Describe your issue
I recently work on a project that needs to change the direction to "rtl" when changing the site language to Arabic, and the project has the tailwindcss-forms plugin installed. I noticed all the form elements I used are rendering "rtl" normally except the <select>
element.
A raw, no styles select element with "rtl" direction displays the chevron down icon on the left side, shows here https://play.tailwindcss.com/lORpOqPWap. However, the tailwindcss-form plugin always has the icon displaying on the right side.
In the reproduction branch, I set the "Unstyled" section to "rtl" to show the issue.
I think we should have the select element resemble the "rtl" style of a raw,no styles select element by putting the chevron icon on the left side. I currently overrided some styles of the tailwindcss-form to fix the issue in my project, but I think this should be supported by the plugin natively.
I already worked on a solution and ready to submit a PR, but I know the contributing guidelines is issue first then PR, so here's description for the issue.