Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: indicator for hightlighted date and today #2638

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading