Skip to content

Commit

Permalink
feat(help): describe component using design tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaniczko-sage committed Feb 23, 2022
1 parent 424b0c2 commit a102cdf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/help/help.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import StyledIcon from "../icon/icon.style";

const StyledHelp = styled.div`
background: none;
color: ${({ theme }) => theme.help.color};
cursor: default;
border: none;
outline: none;
Expand All @@ -17,20 +16,24 @@ const StyledHelp = styled.div`
margin-top: 0;
text-decoration: none;
${StyledIcon} {
color: var(--colorsUtilityYin065);
}
${({ href }) =>
href &&
css`
cursor: pointer;
`}
&:focus,
&:hover {
color: ${({ theme }) => theme.help.hover};
&:focus ${StyledIcon},
&:hover ${StyledIcon} {
color: var(--colorsUtilityYin090);
text-decoration: none;
}
&:focus ${StyledIcon} {
outline: ${({ theme }) => `2px solid ${theme.colors.focus}`};
outline: 2px solid var(--colorsSemanticFocus500);
}
${margin}
Expand Down

0 comments on commit a102cdf

Please sign in to comment.