RCFilters UI: Add 'direction' property to the wrapper
authorMoriel Schottlender <moriel@gmail.com>
Sat, 11 Feb 2017 02:37:55 +0000 (18:37 -0800)
committerMoriel Schottlender <moriel@gmail.com>
Fri, 24 Feb 2017 01:12:42 +0000 (17:12 -0800)
Adds 'direction: ltr' to the entire interface, rather than just
the input, since the entire FilterWrapperWidget is interface-direction
and not content direction.

Bug: T157189
Change-Id: I94ccfea878d83a24e071696b9c4e58115c9295c9

resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterWrapperWidget.less

index 2928102..bdc94b3 100644 (file)
@@ -1,5 +1,7 @@
 .mw-rcfilters-ui-filterWrapperWidget {
        width: 100%;
+       // Make sure this uses the interface direction, not the content direction
+       direction: ltr;
 
        &-popup {
                // We have to override OOUI's definition, which is set
@@ -13,7 +15,9 @@
                margin-top: -0.5em;
 
                input {
-                       // Make sure this uses the interface direction, not the content direction
+                       // We need to reiterate the directionality
+                       // for the input as well to literally override
+                       // a MediaWiki CSS rule that turns it 'ltr'
                        direction: ltr;
                }
        }