-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
自定义菜单图标时收起菜单导致文字不隐藏 #2782
Comments
Duplicate of #2783 |
afc163
added a commit
to ant-design/ant-design
that referenced
this issue
Nov 7, 2018
ardok
pushed a commit
to ardok/ant-design
that referenced
this issue
Nov 8, 2018
我又看了一下#2783,我觉得不是duplicate,默认在收起后会隐藏一级菜单的文字,因为icon上有 |
@puuuudding 说的没错,可以在自定义图标外面加上一个 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现象以下截图所示
这是用自定义icon时的DOM结构
这是用antd自带的icon时的DOM结构
这是隐藏菜单文字的css
可以看到隐藏是通过
.anticon+span
找到的,但是用自定义icon的时候元素是<img>
所以会找不到The text was updated successfully, but these errors were encountered: