Skip to content

Commit

Permalink
feat(Link): 解决嵌套a标签样式冲突的问题 (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean-gao authored Jun 4, 2024
1 parent 9b9f4f4 commit dd5381b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/link/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@
display: inline-flex;
align-items: center;
justify-content: flex-start;
color: var(--f-text-color);
text-decoration: none;
cursor: pointer;

a {
color: inherit;
text-decoration: inherit;
}

.icon {
display: flex;
align-items: center;
Expand Down
7 changes: 6 additions & 1 deletion docs/.vitepress/components/link/href.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<template>
<FLink href="https://fesjs.mumblefe.cn/" target="_blank">Fes.js官网</FLink>
<FSpace>
<FLink href="https://fesjs.mumblefe.cn/" target="_blank">Fes.js官网</FLink>
<FLink type="primary">
<a href="https://fesjs.mumblefe.cn/" target="_blank">Fes.js官网</a>
</FLink>
</FSpace>
</template>

0 comments on commit dd5381b

Please sign in to comment.