Skip to content

Commit b3e5410

Browse files
committed
fix: 修复GitHub徽标hover颜色问题
1. 修改全局a标签hover颜色从primaryDark为primaryHover\n2. 为Logo组件添加明确的hover样式,避免受全局样式影响
1 parent 2aa154f commit b3e5410

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

office-website/src/components/Header.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ const Logo = styled.a`
3939
span {
4040
margin-left: 0.5rem;
4141
}
42+
43+
&:hover {
44+
color: ${({ theme }) => theme.colors.primaryHover};
45+
text-decoration: none;
46+
}
4247
`;
4348

4449
const NavLinks = styled.nav`

office-website/src/styles/GlobalStyles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const GlobalStyles = createGlobalStyle`
7979
transition: ${({ theme }) => theme.transitions.fast};
8080
8181
&:hover {
82-
color: ${({ theme }) => theme.colors.primaryDark};
82+
color: ${({ theme }) => theme.colors.primaryHover};
8383
}
8484
}
8585

0 commit comments

Comments
 (0)