-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
No way to set styles of selected days in range mode in v9.0 #2218
Comments
Hi @punit1108 thanks for your feedback, it's very important before the release. First of all, please make sure you use the latest version – as it has been updated recently: npm install react-day-picker@next Regarding your question - what are you trying to do? Please be more specific about your issue. Border radius in stored in by .rdp-selected.rdp-range_start {
/* set the value here to update the variable when range start: */
--rdp-day_date-border-radius: 0;
} Or: .rdp-selected.rdp-range_start .rdp-day_date {
/* here you can override the day date content too */
border-radius: 0;
} |
Hi @lariane-guerra! Here to help...
|
Hi, I'll update the version and see. |
import brazilLocale from 'date-fns/locale/pt-BR'
locale={brazilLocale} I found it: |
To add: in playground when you change to pt-BR, bug happen too. |
Description
Currently there is no way to add properties for range start selected date and end selected date, which might be useful in a lot of scenarios which customizing the range selection.
Expected Behavior
There should be a way to style the radiuses of the start and end selected days
Actual Behavior
No styling property currently corresponds to it.
Steps to Reproduce
Possible Solution
Solution 1 -
--rdp-range_start-selected-border-radius
--rdp-range_end-selected-border-radius
Solution 2 -
Add a way to add Tailwind styles apart from the
selected
property, eg,range-start-selected
range-end-selected
Screenshots
If applicable, add screenshots or GIFs to help explain your problem.
Your Environment
The text was updated successfully, but these errors were encountered: