Closed as not planned
Description
Provide a general summary of the issue here
When selecting a date in RangeCalendar, and not having moved the cursor yet, the one date that is in selection acts as a [data-selection-end]. This causes styling issues for us:
π€ Expected Behavior?
I expect this cell to act as a [data-selected] before the selection is extended, as React Aria can't predict which direction the user will drag the selection.
π― Current Behavior
React Aria predicts that the cell should act as [data-selection-end]
π Possible Solution
No response
π¦ Context
No response
π₯οΈ Steps to Reproduce
Current CSS implementation:
&[data-selected] {
color: INTERNAL COLOR VARIABLE;
background: INTERNAL COLOR VARIABLE;
&:hover {
background: INTERNAL COLOR VARIABLE;
}
}
&[data-selection-start],
&[data-selection-end] {
color: INTERNAL COLOR VARIABLE;
/** This is to have two backgrounds, see screenshot above */
&::after {
background: INTERNAL COLOR VARIABLE;
}
}
Version
React-Aria-Components
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
MacOs Sonoma 14.0
π§’ Your Company/Team
No response
π· Tracking Issue
No response
Metadata
Metadata
Assignees
Type
Projects
Status
β
Done