GithubHelp home page GithubHelp logo

antd-rtl's Introduction

                       

                       

antd-rtl's People

Contributors

yesmeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

antd-rtl's Issues

RTL下部分组件样式不正确

antd官方目前没有支持RTL,根据issue4051采用切换语言加载不同css文件的方式来处理,实际运行时发现部分样式问题:

  1. popconfirm宽度和箭头位置异常:
    • antd-rtl.css的.ant-popover样式中存在right:0;
    • 气泡箭头位置的样式.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow被设置为right: 16px 应该为left:16px
  2. Cascader、Select设置getPopupContainer后选项位置不正确:
    • antd.rtl.css中.ant-select-dropdown下right:-9999px,设置getPopupContainer导致选项计算left属性错误;
    • Cascader中,级联选项依次展时方向仍然是从左往右
    • .ant-dropdown 、.ant-mention-dropdown存在同样的问题;
    • 改为left: -9999px后恢复正常
/*antd-rtl.css*/
.ant-cascader-menus-placement-bottomLeft {
  left: unset !important;
  right: 0 !important;
}    
.ant-select-dropdown {
  left: -9999px; /*right: -9999px*/
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.