Dashboards & Visualizations

Why does adding a drilldown change the colour of the text in a table?

mwdbhyat
Builder

Hi there,

I have an issue where I have a table thats initially has white text(in dark mode) as it should.. but if i enable drilldown on the table - all entries have blue text instead of standard white

Any idea how to stop this from changing - I just want white text.

Thanks!

0 Karma
1 Solution

niketn
Legend

@mwdbhyat seems like you need to disable hyperlink color blue which is applied on table with drilldown by default. You can refer to a similar post (without "dark mode") and apply similar CSS extension (to convert text color to white instead of black). Add the following code to your dashboard where table id="tableWithDrilldown"

 <row depends="$alwaysHideCSSPanel$">
   <panel>
     <html>
       <style>
         #tableWithDrilldown table tbody tr td,#tableWithDrilldown table thead th a{
           color: white !important;
         }
       </style>
     </html>
   </panel>
 </row>

https://answers.splunk.com/answers/661140/how-can-i-use-drilldown-in-one-cell-and-hide-the-m.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

efavreau
Motivator

My experience was different and it worked as expected with my drilldowns. What version of Splunk are you on? How are you enabling dark mode? Are you calling dark.css? Is that standard or did you modify it? Is there any dashboard/drilldown code you can share? What did you try to change it? Does your drilldown panel have a custom ID?

###

If this reply helps you, an upvote would be appreciated.
0 Karma

niketn
Legend

@mwdbhyat seems like you need to disable hyperlink color blue which is applied on table with drilldown by default. You can refer to a similar post (without "dark mode") and apply similar CSS extension (to convert text color to white instead of black). Add the following code to your dashboard where table id="tableWithDrilldown"

 <row depends="$alwaysHideCSSPanel$">
   <panel>
     <html>
       <style>
         #tableWithDrilldown table tbody tr td,#tableWithDrilldown table thead th a{
           color: white !important;
         }
       </style>
     </html>
   </panel>
 </row>

https://answers.splunk.com/answers/661140/how-can-i-use-drilldown-in-one-cell-and-hide-the-m.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

mwdbhyat
Builder

Awesome!..Thanks!

0 Karma

tomasmoser
Contributor

I tried many of these examples and it simply DOES NOT work. At all. Style referred with "id" does not redefine color within a table cell at all.

0 Karma

tomasmoser
Contributor

I found the problem. 7.3.3 has a bug. Splunk, please release better code and invest into quality.
https://answers.splunk.com/answers/789945/how-to-include-css-in-dashboards-with-the-latest-s.html

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...