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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...