Giter Site home page Giter Site logo

Comments (8)

sanjitchh avatar sanjitchh commented on September 27, 2024 1

@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 tabs: {hidden: false} in the slotProps. I was looking to customize the the tab colors separately using sx as i have done for day but the tabs slotProp currently does not support sx.
I have attatched the image of my code and the tabs I am talking about.

image
image

from mui-x.

LukasTy avatar LukasTy commented on September 27, 2024

Thank you for reporting this problem! 🙏
I can confirm that there is an issue here, at a minimum this component should support className and sx prop.
The classes prop is technically optional because it only contains a root slot.
At the same time, we should add the missing classes prop to the DateTimePickerToolbar.

from mui-x.

iamabhshk avatar iamabhshk commented on September 27, 2024

Can I look into this? @LukasTy

from mui-x.

LukasTy avatar LukasTy commented on September 27, 2024

Can I look into this?

Feel free to work on it. 👍
Just to let you know, we have not groomed this issue yet, thus, the information might not be complete. 🤔

from mui-x.

iamabhshk avatar iamabhshk commented on September 27, 2024

I analyzed the code and here's what I found.
MUIX-1

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']
For details you can refer to this link https://mui.com/material-ui/api/toggle-button-group/

I hope this is what you were seeking if my understanding to your issue was correct.

from mui-x.

LukasTy avatar LukasTy commented on September 27, 2024

@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.
The issue author is expecting the ability to provide styling props to the DateTimePickerTabs component. 😉

from mui-x.

iamabhshk avatar iamabhshk commented on September 27, 2024

Ohh I see, now I am clear. Let me try it and will let you know.

from mui-x.

github-actions avatar github-actions commented on September 27, 2024

⚠️ This issue has been closed.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.

How did we do @sanjitchh?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.

from mui-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.