Skip to content
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

移动端设计指南中 Navigation > Pagination > Button with text and icon 样式 bug #1429

Closed
littlemonkey19920204 opened this issue Jun 7, 2017 · 5 comments
Assignees
Labels

Comments

@littlemonkey19920204
Copy link

littlemonkey19920204 commented Jun 7, 2017

Version

1.2.0

Environment

OS X 10.11.2, Chrome 58

Reproduction link

https://mobile.ant.design/index-cn

Steps to reproduce

<div class="am-flexbox-item am-pagination-wrap-btn am-pagination-wrap-btn-prev">
<a role="button" class="am-button am-button-inline" aria-disabled="false">
<div class="arrow-align">
<svg class="am-icon am-icon-left am-icon-md">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#left"></use>
</svg>
<!-- react-text: 31 -->上一步<!-- /react-text -->
</div>
</a>
</div>

Above-mentioned codes got style problem as the screenshot pasted below:

image

What is expected?

  • left arrow icon should be positioned in "Prev" button, and the icon should be center-align with the text
  • right arrow icon got the same problem
  • "Prev" button, pagination and "Next" button, these three elements should be center-aligned

What is actually happening?

  • arrow icon is not positioned in button, and not aligned with text
  • "Prev" button, pagination and "Next" button are not aligned
@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@ant-design-bot
Copy link

Hello @littlemonkey19920204. Please provide a re-producible demo: http://codepen.io/paranoidjk/pen/LWpaKe

@paranoidjk
Copy link
Contributor

The official demo look fine at my browser https://mobile.ant.design/index-cn.

Please provide a reproducible demo.

@littlemonkey19920204
Copy link
Author

The official demo look fine at my browser https://mobile.ant.design/index-cn.

Please provide a reproducible demo.

@paranoidjk I visited the page with Chrome 58, and my desktop system is OS X 10.11.2. I just checked the page, still got layout problem with pagination as the screenshot shown below:

image

If the code looks fine, that might be a browser compatibility problem.

@warmhug
Copy link
Contributor

warmhug commented Jun 8, 2017

image
选圈圈里选项就没问题了。
应该是页面宽度问题,scrollbar 占了宽度,需要修复。

@paranoidjk paranoidjk added bug and removed Need Demo labels Jun 8, 2017
@paranoidjk paranoidjk self-assigned this Jun 8, 2017
@paranoidjk paranoidjk added doc and removed bug labels Jun 8, 2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants