-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DateTimePicker] Can't change the color for the tabs #11532
Comments
Thank you for reporting this problem! 🙏 |
Can I look into this? @LukasTy |
Feel free to work on it. 👍 |
I analyzed the code and here's what I found. In the above screenshot, we are using a 'ToggleButtonGroup' component and it has a color property. In order to change the color we can replace the 'primary' with these options: ['secondary'| 'error' | 'info'| 'success'| 'warning'] I hope this is what you were seeking if my understanding to your issue was correct. |
@iamabhshk If we are talking about building your own "DatePicker" various subcomponents - then sure, your example makes sense, but in this case the problem is different. |
@LukasTy @iamabhshk Hey! Sorry for not providing more context. I was talking about the color of the tabs of the DateTimePicker component that we get when we have |
Ohh I see, now I am clear. Let me try it and will let you know. |
How did we do @sanjitchh? |
Related page
https://mui.com/x/react-date-pickers/custom-components/
Kind of issue
Missing information
Issue description
I wanted to change the color for the Date Time Picker tabs that let us switch between the date and the time sections of the picker. There is no clear explainantion for how to to it. I cannot add sx to the tabs in the slotprops and adding the class somewhere else is also not working.
Context 🔦
No response
Search keywords: DateTimePicker tab color
The text was updated successfully, but these errors were encountered: