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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...