Skip to content

Commit

Permalink
style: fix style for timelinemarker guide
Browse files Browse the repository at this point in the history
  • Loading branch information
wildergd committed Jan 15, 2021
1 parent 81a2004 commit 2986bfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/TimelineMarker/styled/columnLeft.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import styled from 'styled-components';
import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs';
import { getContrastText, replaceAlpha } from '../../../styles/helpers/color';

const getColor = props => replaceAlpha(getContrastText(props.palette.background.main), 0.1);

const StyledColumnLeft = attachThemeAttrs(styled.div)`
display: flex;
Expand All @@ -9,7 +12,7 @@ const StyledColumnLeft = attachThemeAttrs(styled.div)`
::before {
content: '';
background-color: ${props => props.palette.background.highlight};
background-color: ${props => getColor(props)};
height: 100%;
width: 1px;
position: absolute;
Expand Down

0 comments on commit 2986bfd

Please sign in to comment.