question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option to change the highlighting background color of `updatemenus`

See original GitHub issue

Currently only the normal (i. e. unhighlighted) background color can be changed through the parameter bgcolor. If you set this background to a dark coloring, you most probaby also want to adjust the text font to a bright coloring so that the text is still readable. But then the text becomes pretty unreadable while being highlighted since the highlighting background color is very bright!

Therefore I think an additional parameter bgcolor_active or the like should be introduced.

Additionally, an even more sophisticated solution could involve an automatic adjustment of the text font color and/or background color depending on the color brightness of the user defined bgcolor and/or font.color values (this seems to be already the case with the font color of hoverinfo labels).

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

7reactions
jsandiegocommented, Dec 2, 2019

I’d like to bump this issue. Would be great to have this customization!

4reactions
vidascicommented, Sep 22, 2020

I would also love to see this being implemented, plotly plots with a dark theme look great but it’s a big downside having a bright background in updatemenus (and being unable to change it)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updatemenus buttons bgcolor not working - plotly.js
Setting it to false fixed the issue. Now I have a new problem: is there any way to change the background color when...
Read more >
How to edit button highlight color in Plotly dropdown menu?
Now, I'd like to change the highlight color of the button (e.g. on hover) from default white to a different color. Is there...
Read more >
I want to change the highlight color inside a dropdown menu.
I need to change the dropdown menu, hover-over-highlight-colo... ... background color of the dropdown or the font color of the option texts ...
Read more >
Visualization with Plotly.Express: Comprehensive guide
Scatter plots allow to easily add marginal plots to highlight the distribution of one variable or of several variables specified by the color...
Read more >
Add or change the background color of cells - Microsoft Support
Select the cells you want to highlight. Tips: To use a different background color for the whole worksheet, click the Select All button....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found