-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Auto-detect "Right To Left" support #2027
Comments
Well, it appears that there is RTL support, but it's just not documented... Furthermore, please consider making the RTL option automatic - derived of the HTML's |
Hey @ZvikaZ, I'm not sure the rtl should be derived automatically from the HTML's |
Please read again my original post. In the current situation, if the user has an RTL document, and he wants an LTR timeline, he has to wrap it in an LTR div, and don't give the timeline any parameters. I assume that fixing the initial problem is too complicated, and not every important. The easiest solution (in my opinion...) is too derive the configuration from the wrapping element. |
Ok i see what you mean. בתאריך 11 באוק׳ 2016 8:21 לפנה״צ, "Zvika" notifications@github.com כתב:
|
Well, if you can do it it'd be great. בתאריך 11 באוק׳ 2016 09:20, "yotamberk" notifications@github.com כתב:
|
I'll give it a go during the holidays. Chag Sameah! ;) בתאריך 11 באוק׳ 2016 9:22 לפנה״צ, "Zvika" notifications@github.com כתב:
|
closed with #2141 |
There is still the issue that |
Umm it can be easily done. I'm just still not sure what I think about it. I think it should be done instead of the options but I don't know how to document the support of this. |
I think the "rtl" option should have the default value "auto". If it is set to "auto" we try to guess if the user uses "rtl" e.g. by looking for see also |
Here is wat the specs say:
I think we have to check every parent element of the timeline for a direction tag. |
The merge request I've add does this. It takes the nearest parent's |
Yes, but it the root element has no direction we have to check its parent elements up to the dom-root. Usually the direction is set in the document's root element the |
Finally can be closed with #2237 |
Hi.
Currently, if the html doc is an RTL (
<html dir="rtl">
), the timeline isn't rendered 100% correctly - at first glance it looks OK, but as it's zoomed out, the dates are displayed on wrong place.If it's possible, it'd be great to have the timeline rendered from right to left (to support Hebrew and Arabic) according to
dir
attribute - i.e., the earliest date on the right and later dates go to the left.Thanks
The text was updated successfully, but these errors were encountered: