Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(lsg): add hover state to element
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 14, 2017
1 parent 8ba5705 commit 92e4c10
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface StyledPlaceholder {

const StyledElement = styled.div`
cursor: default;
position: relative;
`;

const StyledElementLabel = styled.div`
Expand All @@ -56,11 +57,20 @@ const StyledElementLabel = styled.div`
color: ${colors.black.toString()};
position: relative;
&:hover {
background: ${colors.grey90.toString()};
}
${(props: StyledElementLabelProps) =>
props.active
? `
color: ${colors.white.toString()};
background: ${colors.blue.toString()};
&:hover {
background: ${colors.blue.toString()};
}
`
: ''};
${(props: StyledElementLabelProps) =>
Expand Down

0 comments on commit 92e4c10

Please sign in to comment.