Skip to content

Commit

Permalink
consolidated hoved stylings for chips
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartebore committed Aug 11, 2023
1 parent 1261f68 commit 6cbdab1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
16 changes: 4 additions & 12 deletions packages/eds-core-react/src/components/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ const StyledChips = styled.div.attrs<StyleProps>(
fill: ${typography.color};
}
${({ clickable }) => clickable && css`
@media (hover: hover) and (pointer: fine) {
&:hover {
color: ${states.hover.typography.color};
svg {
fill: ${states.hover.typography.color};
}
}
}
`}
&:focus {
outline: none;
}
Expand All @@ -78,6 +66,10 @@ const StyledChips = styled.div.attrs<StyleProps>(
@media (hover: hover) and (pointer: fine) {
&:hover {
cursor: pointer;
color: ${states.hover.typography.color};
svg {
fill: ${states.hover.typography.color};
}
}
}
`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ exports[`Chips Matches snapshot 2`] = `
@media (hover:hover) and (pointer:fine) {
.c0:hover {
cursor: pointer;
color: var(--eds_interactive_primary__hover,rgba(0,79,85,1));
}
Expand All @@ -131,12 +132,6 @@ exports[`Chips Matches snapshot 2`] = `
}
}
@media (hover:hover) and (pointer:fine) {
.c0:hover {
cursor: pointer;
}
}
<div
class="c0"
role="button"
Expand Down

0 comments on commit 6cbdab1

Please sign in to comment.