Ng-zorro-antd: Adding support for RTL

Created on 30 Jun 2018  路  10Comments  路  Source: NG-ZORRO/ng-zorro-antd

What problem does this feature solve?

Currently i tried to add RTL support for temporary solution till ant.design release official support for the components. please feel free to check my modified fork
https://github.com/KhaledSMQ/ng-zorro-antd

What does the proposed API look like?

Add RTL Components

Discussion help wanted

Most helpful comment

Currently we are working on a RTL fork of this repository in our company and we made some of components work with right-to-left direction.
I want to contribute and i don't know how to start.
I've already read the Guide.
We add rtl styles to components one by one and at the beginning i want to pull request button component.
Do i need to open an issue per component?

All 10 comments

+1

Is there any update ?
@vthinkxie

+

Currently we are working on a RTL fork of this repository in our company and we made some of components work with right-to-left direction.
I want to contribute and i don't know how to start.
I've already read the Guide.
We add rtl styles to components one by one and at the beginning i want to pull request button component.
Do i need to open an issue per component?

Hi @saeedrahimi
I saw your pr https://github.com/NG-ZORRO/ng-zorro-antd/pull/3882/files great job

There are two things we must take into consideration

  1. all styles file are following ant design repo
    there is a discuss here and here
  2. we replace moment with date-fns since version 0.7.x because moment is not treeshake-able

maybe you can submit a pr to ant-design repo first, so we can sync from them.
thanks a lot!

@saeedrahimi I noticed that you finished the work of https://github.com/ant-design/ant-design/pull/19380. Great job! Could you please bring RTL to zorro? Many thanks in advance!

@saeedrahimi I noticed that you finished the work of ant-design/ant-design#19380. Great job! Could you please bring RTL to zorro? Many thanks in advance!

RTL of Ant Design in react will be shipping out with v4 release. I there any plan to sync with new release? there are a lot of changes.
I think it needs to discuss after v4 release and syncing zorro with v4.

@saeedrahimi We're working on ng-zorro-antd 9.0.0 and will sync antd 4.0.0 in this version. So feel free to submit PR.

4704

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IonelLupu picture IonelLupu  路  3Comments

linjianhong picture linjianhong  路  3Comments

vthinkxie picture vthinkxie  路  3Comments

ismezy picture ismezy  路  3Comments

bambooj picture bambooj  路  4Comments