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

<Icon /> transition 效果 和文字不同步 #5495

Closed
uinz opened this issue Mar 25, 2017 · 1 comment
Closed

<Icon /> transition 效果 和文字不同步 #5495

uinz opened this issue Mar 25, 2017 · 1 comment

Comments

@uinz
Copy link

uinz commented Mar 25, 2017

"antd": "^2.8.2",

<Menu /> 组件中 <Menu.Item /> hover 的时候
文字 与 图标 的 渐变色效果不同步(图标组件延迟.3s 响应)

我认为是 父节点 .ant-menu-item 与子节点 .ant-menu-item .anticon
都使用了 transiton: all .3s 导致的

由于 .ant-menu-item 已经有 transition: all .3s 的样式,

所以建议
.ant-menu-item .anticon, .ant-menu-submenu-title .anticontransition: all .3s 样式移除

原谅我不想翻阅代码提 PR

@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant