Skip to content

Commit

Permalink
Moved :active selector to span
Browse files Browse the repository at this point in the history
  • Loading branch information
Mil4n0r committed Aug 8, 2024
1 parent 9da078c commit 266765e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/lib/src/link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ const StyledLink = styled.div<{
border-bottom-color: ${props.theme.visitedUnderlineColor};`}
}
}
&:active {
& > span {
${(props) => `color: ${props.theme.activeFontColor} !important;
border-bottom-color: ${props.theme.activeUnderlineColor} !important;`}
}
}
&:focus {
border-radius: 4px;
outline: 2px solid ${(props) => props.theme.focusColor};
Expand Down Expand Up @@ -139,6 +133,10 @@ const LinkContainer = styled.span<{
cursor: pointer;
border-bottom-color: ${props.theme.hoverUnderlineColor};`}
}
&:active {
${(props) => `color: ${props.theme.activeFontColor} !important;
border-bottom-color: ${props.theme.activeUnderlineColor} !important;`}
}
`;

export default DxcLink;

0 comments on commit 266765e

Please sign in to comment.