-
Notifications
You must be signed in to change notification settings - Fork 13
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
V3 calendar #629
V3 calendar #629
Conversation
…e unused components
case "hover-subtle": | ||
color = Colour["bg-hover"]; | ||
borderColor = Colour["bg-hover"]; | ||
break; | ||
case "hover-current": | ||
color = V2_Color.Neutral[8]; | ||
border = `1px solid ${V2_Color.Primary(props)}`; | ||
case "hover": | ||
color = Colour["bg-hover-strong"]; | ||
borderColor = Colour["bg-hover-strong"]; | ||
break; | ||
case "selected": | ||
color = V2_Color.Accent.Light[5]; | ||
border = `1px solid ${V2_Color.Accent.Light[4](props)}`; | ||
case "hover-outline": | ||
color = Colour["bg-hover-subtle"]; | ||
borderColor = Colour["border-hover"]; | ||
break; | ||
case "selected-outline": | ||
color = V2_Color.Accent.Light[5]; | ||
border = `1px solid ${V2_Color.Primary(props)}`; | ||
color = Colour["bg-selected"]; | ||
borderColor = Colour["border-selected"]; | ||
break; | ||
case "overlap": | ||
color = V2_Color.Accent.Light[4]; | ||
border = `1px solid ${V2_Color.Accent.Light[4](props)}`; | ||
case "selected-outline-subtle": | ||
color = Colour["bg-selected"]; | ||
borderColor = Colour["border-selected-subtle"]; | ||
break; | ||
case "overlap-outline": | ||
color = V2_Color.Accent.Light[4]; | ||
border = `1px solid ${V2_Color.Primary(props)}`; | ||
case "selected-hover": | ||
color = Colour["bg-selected-hover"]; | ||
// no border to give it an overlay effect | ||
break; | ||
case "selected-hover-outline": | ||
color = Colour["bg-selected-hover"]; | ||
borderColor = Colour["border-selected-hover"]; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wondering if it is possible to align with UX on the naming of various states?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to the different possible combinations of elements across components, and the modular implementation of the day cell, the naming of CellType
can't be 1:1 with the elements. but UX has suggested to include a mapping in Figma to bridge this difference
Changes
known issue: the day view peeks out behind the month/year view on mobile date input. will be fixing separately as it may involve shifting some styles from parent to children