Skip to content

Commit 834e7f3

Browse files
committed
fix: 明暗主题按钮边框
1 parent f18e35c commit 834e7f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

website/src/component/Header/index.module.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ html[data-color-mode*='dark'] .warpper {
2525
.menus {
2626
display: flex;
2727

28+
span,
2829
a {
2930
transition: all 0.3s;
3031
color: var(--color-fg-default);
@@ -39,6 +40,7 @@ html[data-color-mode*='dark'] .warpper {
3940
}
4041

4142
:global(.active),
43+
span:hover,
4244
a:hover {
4345
background: #00000017;
4446
color: #0366d6;

website/src/component/Header/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ export default function Header(props: HeaderProps) {
4747
Web 组件
4848
</a>
4949
<NavLink to="/team">团队</NavLink>
50-
<a>
50+
<span>
5151
<dark-mode permanent />
52-
</a>
52+
</span>
5353
<a target="__blank" href="https://github.com/uiwjs/react-native-uiw">
5454
<Github />
5555
</a>

0 commit comments

Comments
 (0)