Skip to content

Commit

Permalink
Day hover style has priority over selected style
Browse files Browse the repository at this point in the history
  • Loading branch information
veej committed May 13, 2024
1 parent 5cf215c commit 4de9c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bento-design-system/src/DateField/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function computeStyle(props: {
return "focused";
} else return "default";
} else {
if (props.isStartDate) {
if (props.isInHoverRange) {
return "inHoverRange";
} else if (props.isStartDate) {
if (props.isEndDate) {
return "selected";
}
Expand All @@ -56,8 +58,6 @@ function computeStyle(props: {
return "selectedEnd";
} else if (props.isInRange) {
return "selectedRange";
} else if (props.isInHoverRange) {
return "inHoverRange";
} else if (props.isFocused) {
return "focused";
} else {
Expand Down

0 comments on commit 4de9c27

Please sign in to comment.