Fluent UI Control - Dialog: How to change background color of Header (title bar) #34355
-
Hello I am developing a Chatbot and using Fluent UI Control - Dialog. As per the requirements, I need to change the background color of Header (title bar). For Example, as shown in below screenshot, I want to change the dialog's background color: I did not find any "properties" of "Dialog" control that I can use it to change the header background control. When I use browser developer tool, I can see that Dialog's header section uses "ms-Dialog-header header" class. In browser's developer tool, if I edit this css class to add "background-color:red", I can achieve the results but not sure how do I do it in code. I am unable to override "ms-Dialog-header header" class in code. Any help will be highly appreciated. Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I think you can place you Dialog inside a secondary |
Beta Was this translation helpful? Give feedback.
-
@gopaltiwari which version of the library are you using? |
Beta Was this translation helpful? Give feedback.
-
@gopaltiwari you should be able to achieve this by passing the following to styles: {
header: {
// your header styles
}
} You can see that in action in this codepen |
Beta Was this translation helpful? Give feedback.
@gopaltiwari you should be able to achieve this by passing the following to
dialogContentProps
:You can see that in action in this codepen