# Why does my dcc.Dropdown background colour change, when I generate a plot or table in my Dashboard?

**URL:** <https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [August 30, 2022, 8:31am UTC](https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482 "2022-08-30T08:31:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aditya\_Bhargav](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aditya_bhargav/32/20314_2.png) [@Aditya\_Bhargav](https://community.plotly.com/u/Aditya_Bhargav)\
**Post date:** [August 30, 2022, 8:31am UTC](https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482/1 "2022-08-30T08:31:53Z")

</div>

![Screenshot (55)](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/b/2/b2784c2e4f59663d69c5669aa1e3046e5410e3b6.png)  
 ![Screenshot (56)](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/c/fc6d518cdb71b49af3d1575130fe6fa5698271c0.png)

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [August 30, 2022, 10:00am UTC](https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482/2 "2022-08-30T10:00:27Z")

</div>

I think you are refering to the background of the dropdown options?

Have a read here:

> [@How to colorize Dropdown field in Dash?](https://community.plotly.com/t/how-to-colorize-dropdown-field-in-dash/5648):
>
> Hi, Can I colorize a dropdown field (not the whole menu) in Dash ? What about the selected text only ? Thanks!

and here:

> [@I can't change color of dropdown menu](https://community.plotly.com/t/i-cant-change-color-of-dropdown-menu/28174):
>
> I have Dash 1.1.1 and I am trying to change the color scheme to have a black background and while text. I’ve managed to get everything to work except for the Dropdown elements. The initial look of Dropdowns is fine, except the color of the default values is too dark: [Screenshot%20from%202019-09-03%2011-46-02] However, if I select one of the dropdown menus, the backgrounds are white: [Screenshot%20from%202019-09-03%2011-50-12] How do I make the selected menus also have black background and…

---

<div class="post-metadata">

**Author:** ![Aditya\_Bhargav](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aditya_bhargav/32/20314_2.png) [@Aditya\_Bhargav](https://community.plotly.com/u/Aditya_Bhargav)\
**Post date:** [September 2, 2022, 8:09am UTC](https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482/3 "2022-09-02T08:09:36Z")

</div>

Thank you so much! Works pretty well now 🙂

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [September 2, 2022, 8:26am UTC](https://community.plotly.com/t/why-does-my-dcc-dropdown-background-colour-change-when-i-generate-a-plot-or-table-in-my-dashboard/67482/4 "2022-09-02T08:26:17Z")

</div>

Thanks for the feedback. You could include some code how you solved this and mark your question as answered.
