mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
💄 fix nested a warning in site code
This commit is contained in:
parent
536f791ea9
commit
0ca2b3f41c
@ -241,7 +241,6 @@ svg {
|
||||
padding: 48px 56px;
|
||||
.product-block {
|
||||
margin-bottom: 24px;
|
||||
cursor: pointer;
|
||||
color: @home-text-color;
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
@ -309,10 +308,11 @@ svg {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
h4 {
|
||||
color: @home-bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
a.product-block:hover {
|
||||
h4 {
|
||||
color: @home-bg-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -152,8 +152,14 @@ export default function Page2({ isMobile, locale }) {
|
||||
</span>,
|
||||
];
|
||||
const content = isMobile && !i ? componentButton : moreContent;
|
||||
const BlockElement = item.link ? 'a' : 'div';
|
||||
return (
|
||||
<a className="product-block" key={item.name} href={item.link} style={{ display: 'block' }}>
|
||||
<BlockElement
|
||||
className="product-block"
|
||||
key={item.name}
|
||||
href={item.link}
|
||||
style={{ display: 'block' }}
|
||||
>
|
||||
<Row>
|
||||
<Col
|
||||
xs={8}
|
||||
@ -169,7 +175,7 @@ export default function Page2({ isMobile, locale }) {
|
||||
{content}
|
||||
</Col>
|
||||
</Row>
|
||||
</a>
|
||||
</BlockElement>
|
||||
);
|
||||
});
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user