mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +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 = (
|
const menu = (
|
||||||
<Menu onClick={handleMenuClick}>
|
<Menu onClick={handleMenuClick}>
|
||||||
<Menu.Item key="1">1st menu item</Menu.Item>
|
<Menu.Item key="1"><Icon type="user" />1st menu item</Menu.Item>
|
||||||
<Menu.Item key="2">2nd menu item</Menu.Item>
|
<Menu.Item key="2"><Icon type="user" />2nd menu item</Menu.Item>
|
||||||
<Menu.Item key="3">3rd item</Menu.Item>
|
<Menu.Item key="3"><Icon type="user" />3rd item</Menu.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -70,6 +70,11 @@
|
|||||||
transition: all .3s;
|
transition: all .3s;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
|
|
||||||
|
> .anticon:first-child {
|
||||||
|
min-width: 12px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
Reference in New Issue
Block a user