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
Make TOC text direction always match article text direction. #1397
Conversation
6e4af08
to
e6bfffb
Compare
Oops forgot to test when device lang is RTL and you load a LTR article... |
…ches. This commit fixes both mismatch possibilies: - device RTL with LTR article - device LTR with RTL article
@@ -32,6 +32,8 @@ open class WMFTableOfContentsViewController: UIViewController, | |||
WMFTableOfContentsAnimatorDelegate { | |||
|
|||
let tableOfContentsFunnel: ToCInteractionFunnel | |||
|
|||
let semanticContentAttribute: UISemanticContentAttribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considered naming this semanticContentAttributeOverride
... any naming preference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually I like semanticContentAttributeOverride
retest this please |
https://phabricator.wikimedia.org/T149066
When device lang is LTR...
Before
The TOC was still LTR when the article was RTL:
After
The TOC is RTL when the article is RTL: