From d22115a8f25e5309eabbd98aae5706880d40cacd Mon Sep 17 00:00:00 2001 From: youluna Date: Fri, 28 Dec 2018 20:22:44 +0800 Subject: [PATCH 1/2] docs(ConfigProvider): fix rtl demo --- docs/config-provider/demo/rtl.md | 11 ++++++----- src/nav/rtl.scss | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/config-provider/demo/rtl.md b/docs/config-provider/demo/rtl.md index 0f6ead27e6..292cd1a969 100644 --- a/docs/config-provider/demo/rtl.md +++ b/docs/config-provider/demo/rtl.md @@ -20,7 +20,8 @@ import { ConfigProvider, Button, Radio, Menu, Calendar, DatePicker, Dialog, Time const { SubMenu, Item, Group, Divider } = Menu; const RangePicker = DatePicker.RangePicker; -ConfigProvider.setDirection('rtl'); +// Set global direction to 'rtl'. This affects the whole page +// ConfigProvider.setDirection('rtl'); class Demo extends React.Component { constructor(props) { @@ -50,18 +51,18 @@ class Demo extends React.Component { render() { return ( -
+
Change direction of components: - RTL - LTR + RTL + LTR


-
+