Closed thomascobb closed 6 years ago
The only workaround I found was to reduce the text-indent
on Firefox.
https://stackoverflow.com/questions/28108434/firefox-select-element-doubles-text-indent-value.
Unfortunately, I wasn't able to implement this hack with JSS.
@kof Have you every handled @-moz-document url-prefix()
to target Firefox only in the past? Otherwise, I think that we will close this issue as I'm not aware of anything actionable.
wow, what a hack)
It can be implemented using JSS plugins API. I am not sure this plugin should be in the core because it is such an edge case.
Thanks for the workaround/hack!
As I don't use any selects anywhere else in my application, I'm happy to use the hack in a top level CSS file. If you do manage to implement this with JSS that would be wonderful, otherwise feel free to close this.
I'm closing the issue, it's an edge case, with no clear simple solution.
Expected Behavior
I would expect native and non-native Selects to left justify their text with the same text indent as an Input.
Current Behavior
Currently on firefox on Windows and Linux the native select (the middle one in the screenshot below) has a text indent where the others don't:
Steps to Reproduce (for bugs)
https://codesandbox.io/s/zn4k1yq153
Context
I'm making lists of Inputs and native Selects, and it looks odd when they have different text indents ## Your Environment