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

nz-modal button和a 的打开动画不一致 #3489

Closed
smartsoul opened this issue May 24, 2019 · 4 comments
Closed

nz-modal button和a 的打开动画不一致 #3489

smartsoul opened this issue May 24, 2019 · 4 comments
Assignees
Labels
Component: Modal ❓ FAQ Frequently asked questions.

Comments

@smartsoul
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-9i4ypj

Steps to reproduce

nz-modal button和a 的打开动画不一致

What is expected?

button和a 的打开动画一致,提供是否启用动画选项。一些重的modal会掉帧。

What is actually happening?

button 的modal 是从按钮处缩放打开,a标签是从浏览器中间缩放打开

Environment Info
ng-zorro-antd 7.4.1
Browser Chrome 74.0.3729.169
@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


nz-modal button and a open animation of a is inconsistent

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-9i4ypj

Steps to reproduce

Nz-modal button and a open animation of a are inconsistent

What is expected?

The button and a open animations are the same, providing whether to enable the animation option. Some heavy modals will drop frames.

What is actually happening?

The modal of the button is zoomed in from the button, and the a tag is zoomed in from the middle of the browser.

Environment Info
ng-zorro-antd 7.4.1
Browser Chrome 74.0.3729.169

@smartsoul
Copy link
Author

@hsuanxyz 谢谢,看到关闭动画的选项了,但是有些场景是需要动画的,在7.2.0的时候,两者的动画是一致的。

@hsuanxyz
Copy link
Member

@smartsoul
缺少 href 属性的 a 标签无法聚焦,你可以指定 tabindex 属性 (<a tabindex="-1">...</a>), 或者等待 #3503 合并后使用 <button nz-button nzType="link">...</button> 代替。

感谢反馈,如果还有什么问题欢迎重新发起 issue。

@hsuanxyz hsuanxyz added the ❓ FAQ Frequently asked questions. label May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Modal ❓ FAQ Frequently asked questions.
Projects
None yet
Development

No branches or pull requests

3 participants