Label Text left aligned when dir=rtl
See original GitHub issueWhen using a RTL language, the label text seems to still be left aligned.
- I have searched the issues of this repository and believe that this is not a duplicate. This is also apparently NOT related to https://github.com/mui-org/material-ui/pull/9007#issuecomment-347857227. cc @alitaheri who might know more about this!
Expected Behavior
Label text should be right aligned when dir="rtl"
Current Behavior
Label text is always left aligned:
dir="ltr" |
dir="rtl" |
---|---|
Steps to Reproduce (for bugs)
Here is a minimal demo: https://942ywwnk4w.codesandbox.io/
Context
My labels are showing on misaligned, as per the screenshot above.
.MuiInputLabel-formControl-188 {
top: 0;
left: 0;
position: absolute;
transform: translate(0, 23px) scale(1);
}
.MuiInputLabel-root-187 {
transform-origin: top left;
}
Your Environment
Tech | Version |
---|---|
Material-UI | beta.22 |
React | 16.1 |
browser | Chrome |
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Label Text left aligned when dir=rtl #9332 - mui/material-ui
When using a RTL language, the label text seems to still be left aligned. I have searched the issues of this repository and...
Read more >Structural markup and right-to-left text in HTML
Quick answer. If the overall document direction is right-to-left, add dir="rtl" to the html tag.
Read more >How to Align Labels Next to Inputs
In this snippet, you'll learn how to align elements next to elements. Align labels to the right and left of inputs by using...
Read more >Automactially set direction and text-align based on rtl or ltr ...
Its OK, I can write separate css for both directions, but what could be the best way to switch between these css(e.g, in...
Read more >How to Align Text in HTML – Text-align, Center, and ...
For example, by default, English moves from left to right. ... For example, you could use the center tag to align your text...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed. I found the instructions confusing. Thanks!
I was thinking of a RTL component that would alleviate a lot of the pain. I’m not familiar enough with either jss or this project, but I put something together for myself. It seems a component (if doable/scalable) would be a lot simpler?
On Wed, Nov 29, 2017, 9:49 PM Matt Brookes notifications@github.com wrote: