-
Notifications
You must be signed in to change notification settings - Fork 329
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
Ability to manipulate the text of the day so that only the first letter is capitalized #265
Comments
The localization props allow you to customize any of the date strings. |
I set the I also noticed that |
You're right, the day component changes it to uppercase 😮
Apologies for not catching that. We'll need to add a prop to control whether it does an uppercase on the day names. Would you mind submitting a PR with a new prop |
PR merged and published in 2.1.9 |
Changing the text format of the day from all uppercase to all lowercase (e.g.
TUE --> tue
) can be done by setting the prop:dateNameStyle={{ textTransform: 'lowercase' }}
However, if I'd like only the first letter capitalized, I'm not sure if there is a workaround for this since I cannot use pseudo elements (e.g.
::first-letter
). Does anyone how this might be done?The text was updated successfully, but these errors were encountered: