mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
feat: provide default margin for dropdown menu item icon
This commit is contained in:
parent
a825ed4e66
commit
8e60a591fd
@ -28,9 +28,9 @@ function handleMenuClick(e) {
|
||||
|
||||
const menu = (
|
||||
<Menu onClick={handleMenuClick}>
|
||||
<Menu.Item key="1">1st menu item</Menu.Item>
|
||||
<Menu.Item key="2">2nd menu item</Menu.Item>
|
||||
<Menu.Item key="3">3rd item</Menu.Item>
|
||||
<Menu.Item key="1"><Icon type="user" />1st menu item</Menu.Item>
|
||||
<Menu.Item key="2"><Icon type="user" />2nd menu item</Menu.Item>
|
||||
<Menu.Item key="3"><Icon type="user" />3rd item</Menu.Item>
|
||||
</Menu>
|
||||
);
|
||||
|
||||
|
@ -70,6 +70,11 @@
|
||||
transition: all .3s;
|
||||
line-height: 22px;
|
||||
|
||||
> .anticon:first-child {
|
||||
min-width: 12px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
> a {
|
||||
color: @text-color;
|
||||
display: block;
|
||||
|
Loading…
Reference in New Issue
Block a user