Skip to content

Commit

Permalink
fix: indicator for hightlighted date and today
Browse files Browse the repository at this point in the history
  • Loading branch information
wildergd committed Feb 7, 2024
1 parent 11a0469 commit 9b45f31
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/Calendar/styled/dayButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const StyledDayButton = attachThemeAttrs(styled.button)`
&:active {
box-shadow: ${props => props.shadows.brand};
border: 1px solid ${props => props.palette.brand.main};
line-height: 36px;
}
${props =>
Expand All @@ -48,11 +47,12 @@ const StyledDayButton = attachThemeAttrs(styled.button)`
&::after {
content: '';
height: 4px;
width: 4px;
position: absolute;
top: 28px;
left: 16px;
height: 6px;
width: 6px;
bottom: 1px;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
background: ${
props.isSelected || props.isHovered
Expand All @@ -66,14 +66,13 @@ const StyledDayButton = attachThemeAttrs(styled.button)`
${props =>
props.isSelected &&
props.isToday &&
(props.isToday || props.isHighlighted) &&
`
&:hover,
&:focus,
&:active {
&::after {
top: 27px;
left: 16px;
bottom: 0px;
}
}
`};
Expand Down Expand Up @@ -120,10 +119,10 @@ const StyledDayButton = attachThemeAttrs(styled.button)`
`
&::after {
content: '';
position: absolute;
height: 6px;
width: 6px;
position: absolute;
bottom: 0px;
bottom: 1px;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
Expand Down

0 comments on commit 9b45f31

Please sign in to comment.