-
Notifications
You must be signed in to change notification settings - Fork 58
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
CSS problems with rtl language pages (Arabic) #731
Comments
@ajbroadbent try adding either As per the A couple of solutions come to mind, the easiest being simply removing the border for |
You're right. On closer inspection, the border is being hidden in custom CSS. As for the margin, though, that's coming directly from Calcite. I suppose we can add rtl-post-0 as a workaround, but what should the proper functionality be in this case? It seems like it would be better to make the change in the CSS so that we don't have to hunt down any potential use of pre-1 to add a workaround to. In other parts of the Calcite CSS, pre-1 is getting switched to margin-right instead of margin-left. The issue is just that the margin-left is being left in in a couple of places, so it's adding a margin to both sides instead of just one. |
@ajbroadbent oh really? Hmm. ok that's not what I thought was happening, let me look into this. |
Also created an issue to change the |
Thanks! |
I have a couple more to add to this. .sdk-home-banner .search-bar is currently floated right, but doesn't switch to left in rtl languages. The search icon is set to right: 0, but doesn't switch to left: 0. |
@ajbroadbent did you already fix these? Here's what I see: Also you should put an |
I put in a temporary fix in the documentation specific CSS, since we need to push this live soon, but it's not an ideal fix. You can see the search icon on the right-hand side at http://docdev.arcgis.com/ar/arcgis-online/. |
Thanks for the icon-ui-flush tip! |
@ajbroadbent Now that I'm looking at it, I think you could do that search input + icon layout with an input group component:
|
That is a great idea and would solve some other issues I'm having. Thank you! My one question is this: When I add that to the page, there's a margin on top of the search input, and it's making the button appear off-center. It looks like margin is getting set to 0.3875rem 0 0 0 for all input types, including input[type='search']. Any suggestions? I tried adding leader-0 to the input element, but it didn't get rid of the margin. Any suggestions there? |
Nope, I was missing that. Thanks! |
That input-group looks so much better than what I was trying to do before. Thank you! |
In Arabic (a right to left language), the table of contents and body are stacked top and bottom instead of the table of contents being on the right and the body on the left. It looks like a left margin has been left on the pre-1 class div (column-17) when those should have been switched to a right margin for the rtl languages.
Also, it looks like the figcaption elements have a right border in Arabic that I don't think should be there.
The text was updated successfully, but these errors were encountered: