Skip to content

Commit

Permalink
fix(anchor): fix hover color (#178)
Browse files Browse the repository at this point in the history
* fix(anchor): fix hover color

* test: update snapshots
  • Loading branch information
Jason Walker committed Nov 12, 2019
1 parent c235734 commit ba37e97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ exports[`Anchor it should render an anchor 1`] = `
}
.emotion-0:hover {
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
.emotion-0:focus,
.emotion-0:active {
box-shadow: 0 0 0 4px rgba(0,117,195,0.5);
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
Expand Down Expand Up @@ -69,13 +71,15 @@ exports[`Anchor it should render an external anchor 1`] = `
}
.emotion-0:hover {
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
.emotion-0:focus,
.emotion-0:active {
box-shadow: 0 0 0 4px rgba(0,117,195,0.5);
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
Expand Down Expand Up @@ -117,13 +121,15 @@ exports[`Anchor it should render an external anchor with overwritten target and
}
.emotion-0:hover {
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
.emotion-0:focus,
.emotion-0:active {
box-shadow: 0 0 0 4px rgba(0,117,195,0.5);
color: #003e82;
-webkit-text-decoration: none;
text-decoration: none;
}
Expand Down
11 changes: 2 additions & 9 deletions packages/paste-core/components/anchor/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,14 @@ export const StyledAnchor = styled.a`
outline: none;
&:hover {
color: ${themeGet('textColors.colorTextLinkHover')};
color: ${themeGet('textColors.colorTextLinkDarker')};
text-decoration: none;
}
&:focus,
&:active {
box-shadow: ${themeGet('shadows.shadowFocus')};
color: ${themeGet('textColors.colorTextLinkDarker')};
text-decoration: none;
}
&:focus {
color: ${themeGet('textColors.colorTextLinkFocus')};
}
&:active {
color: ${themeGet('textColors.colorTextLinkActive')};
}
`;
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3780,7 +3780,7 @@
"@types/react" "*"
"@types/webpack-env" "*"

"@types/styled-system@^5.1.2":
"@types/styled-system@^5.1.2", "@types/styled-system@^5.1.3":
version "5.1.3"
resolved "https://registry.yarnpkg.com/@types/styled-system/-/styled-system-5.1.3.tgz#d840c8369c1b8115b84bff0fb9846fcd494204a5"
integrity sha512-YLmQz8sNtLBg5JAuCfkdRl0Hf6KB/eM4wVmy+I3HEMWs35rmExF1BOBydEXjcgfiQ3bu/v+7RBu0whkOYtz4WQ==
Expand Down

1 comment on commit ba37e97

@vercel
Copy link

@vercel vercel bot commented on ba37e97 Nov 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.