-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RangeCalendar: When one date selected #5456
Comments
We could perhaps change this line to have a
From a brief glance, this doesn't seem to break any of our existing styles |
@LFDanLu I would love to work on this issue :) |
@ananta sure, go for it! |
I tried reproducing it but couldn't. Could you provide sandbox of your example? @thorbde Here is my reproduction attempt https://codesandbox.io/p/sandbox/condescending-microservice-5j63r8 When selecting a date using cursor click, it returns and keyboard by pressing space, it returns cc: @LFDanLu |
I believe @thorbde's original ask was for |
@LFDanLu |
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:
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
The text was updated successfully, but these errors were encountered: