<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where can I find CSS for Link List Selected Item? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633426#M51902</link>
    <description>&lt;P&gt;If you want to change the button so that it matches the focus pseduo-class exactly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;#link_list_finops button[aria-checked="true"] {
    color: rgb(0, 110, 170) !important;
    box-shadow: rgb(0, 110, 170) 0px 0px 1px 3px !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Also make sure that your browser is picking up these changes. You can force a cache reset using the _bump endpoint:&lt;BR /&gt;https://my.splunk:8000/en-US/_bump&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 13:14:32 GMT</pubDate>
    <dc:creator>Tom_Lundie</dc:creator>
    <dc:date>2023-03-06T13:14:32Z</dc:date>
    <item>
      <title>Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633139#M51882</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;i love link lists, however i cannot find the apropriate pseude type to manipulate the appearance of the selected Item.&lt;BR /&gt;&lt;BR /&gt;on this site:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mediaevent.de/css/css-selektor-pseudo.html" target="_blank" rel="noopener"&gt;https://www.mediaevent.de/css/css-selektor-pseudo.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;there are examples of pseudo types and "hover" and "selected" work like a charme, however the link list loses the ccs styles once something else is selected in the dashboard.&lt;BR /&gt;Can anyone help?&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 20:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633139#M51882</guid>
      <dc:creator>Brausepaule</dc:creator>
      <dc:date>2023-03-03T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633387#M51897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253889"&gt;@Brausepaule&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I like to play around with the link list items so they look more like buttons. Here's one example from a Social Media dashboard:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-03-06 17_53_25-CSS - Linked List _ Splunk 9.0.2205.1.png" style="width: 700px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24199i7BD8715754AA59A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-06 17_53_25-CSS - Linked List _ Splunk 9.0.2205.1.png" alt="2023-03-06 17_53_25-CSS - Linked List _ Splunk 9.0.2205.1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the Input code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;input type="link" token="platform" searchWhenChanged="true" id="platform"&amp;gt;
      &amp;lt;label&amp;gt;Platform&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Google Play Store"&amp;gt;Google&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Facebook"&amp;gt;Facebook&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Apple App Store"&amp;gt;Apple&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Instagram"&amp;gt;Instagram&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Twitter"&amp;gt;Twitter&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="All"&amp;gt;
          &amp;lt;set token="platform_name"&amp;gt;All Platforms&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="platform_name"&amp;gt;$label$&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;With the exception of the images, here's the CSS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;div#platform button{height: 38px!important;
    padding-left: 36px!important;
    border: 1px solid #cccccc; 
    min-width: 100px;
    background-repeat:no-repeat;
    background-size: 30px 30px;
    background-color:#ffffff;
    width: auto;
    padding: 10px;
    margin-right: 8px;
    color: #333333;
    height: 55px;
    border-radius:7px;
    font-size: 16px;
}

div#platform  button[aria-checked="true"]{
    border:3px solid #6b7785!important;
}&lt;/LI-CODE&gt;&lt;P&gt;The last bit of CSS sets the border of the selected button to be bold, even when you click away to something else.&lt;/P&gt;&lt;P&gt;I'm also setting the ID on the input, so the CSS will only apply to that list in particular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that helps you out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Spav&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633387#M51897</guid>
      <dc:creator>danspav</dc:creator>
      <dc:date>2023-03-06T07:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633390#M51899</link>
      <description>&lt;P&gt;Hi danspav,&lt;/P&gt;&lt;P&gt;the part for aria-checked would be the one i am looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;div#platform  button[aria-checked="true"]{
    border:3px solid #6b7785!important;
}&lt;/PRE&gt;&lt;P&gt;However as soon as i click somewhere else after selecting the button, the border disappears again.&lt;/P&gt;&lt;P&gt;Does it really stay with a thick border after clicking in a chart or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633390#M51899</guid>
      <dc:creator>Brausepaule</dc:creator>
      <dc:date>2023-03-06T07:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633420#M51900</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;EM&gt;:focus&lt;/EM&gt;&amp;nbsp;pseduo-class selector corresponds with the properties that will change when you click elsewhere within the dashboard, but &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170645"&gt;@danspav&lt;/a&gt; ensures this is overridden within his solution using the !important property.&lt;/P&gt;&lt;P&gt;The CSS you're interested in will set a permanent cyan-blue border around the selected (aria-checked="true") buttons within the link list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;div#platform  button[aria-checked="true"]{
    border:3px solid #6b7785!important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, from a purely CSS perspective, this selector specifically selects all of the buttons within a div that is assigned to the "platform" id. In Splunk's link list, this corresponds with an input set with the id="platform."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="link" token="platform" searchWhenChanged="true" id="platform"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this work for you, specifically create an ID that corresponds with what you're trying to achieve and make sure that the CSS aligns. For a simple example:&lt;BR /&gt;&lt;BR /&gt;Dashboard XML:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="link" token="example_token" searchWhenChanged="true" id="exampleId"&amp;gt;
      &amp;lt;label&amp;gt;Platform&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="1"&amp;gt;Value 1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="2"&amp;gt;Value 2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3"&amp;gt;Value 3&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
&amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dashboard CSS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;div#exampleId button[aria-checked="true"]{
    border:3px solid #6b7785 !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then need to replace the "exampleID" and and the choices as appropriate for the context of your dashboard.&lt;BR /&gt;&lt;BR /&gt;P.S. If this doesn't work for you, could you please share some (obfuscated as necessary) XML and CSS contents for us to help diagnose?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 12:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633420#M51900</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-06T12:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633423#M51901</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;no worries i have a working link list with ID and everything and as stated to begin with the CSS applies well until i select something else in the dashboard...here is what i have got:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brausepaule_0-1678106461838.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24203i7E229283E452E00D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brausepaule_0-1678106461838.png" alt="Brausepaule_0-1678106461838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my linklist...sorry in german, but that does not impact anything anyhow &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my simple XML for it:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;      &amp;lt;input type="link" token="field2" id="link_list_finops"&amp;gt;
        &amp;lt;label&amp;gt;...&amp;lt;/label&amp;gt;
        &amp;lt;choice value="overview"&amp;gt;FinOps Overview&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="util_vs_cost"&amp;gt;Nutzung &amp;amp;lt;-&amp;amp;gt; Kosten&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="cost_vs_budget"&amp;gt;Kosten &amp;amp;lt;-&amp;amp;gt; Budget&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="benefits"&amp;gt;Mehrwerte&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="why_splunk"&amp;gt;Warum Splunk?&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;FinOps Overview&amp;lt;/default&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition value="overview"&amp;gt;
            &amp;lt;set token="tok_overview"&amp;gt;&amp;lt;/set&amp;gt;
            &amp;lt;unset token="tok_util_vs_cost"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;unset token="tok_benefits"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition value="util_vs_cost"&amp;gt;
            &amp;lt;unset token="tok_overview"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;set token="tok_util_vs_cost"&amp;gt;&amp;lt;/set&amp;gt;
            &amp;lt;unset token="tok_benefits"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition value="benefits"&amp;gt;
            &amp;lt;unset token="tok_overview"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;unset token="tok_util_vs_cost"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;set token="tok_benefits"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Here is my current CSS for the current style:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;        #link_list_finops {
          width: 100% !important;
        }
        
        #link_list_finops.input-link label {
          font-size: 18px;
          font-weight: bold;
        }

        #link_list_finops.input-link button{
          border-bottom: 1px solid white;
          margin: 5px !important;
          color: white !important;
          font-family:Ink Free !important;
          font-weight: bold !important;
        }&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;As you can see in the screenshot the button is very well highlighted by the default css behavior, but when i click somewhere in my dashboard in goes to this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brausepaule_1-1678106872584.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24204i8001BB33D9021EDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brausepaule_1-1678106872584.png" alt="Brausepaule_1-1678106872584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;adding the aria-checked CSS does not change the behavior when i click on something else in the dashboard.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 12:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633423#M51901</guid>
      <dc:creator>Brausepaule</dc:creator>
      <dc:date>2023-03-06T12:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633426#M51902</link>
      <description>&lt;P&gt;If you want to change the button so that it matches the focus pseduo-class exactly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;#link_list_finops button[aria-checked="true"] {
    color: rgb(0, 110, 170) !important;
    box-shadow: rgb(0, 110, 170) 0px 0px 1px 3px !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Also make sure that your browser is picking up these changes. You can force a cache reset using the _bump endpoint:&lt;BR /&gt;https://my.splunk:8000/en-US/_bump&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633426#M51902</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-06T13:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find CSS for Link List Selected Item?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633435#M51903</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually the other css from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170645"&gt;@danspav&lt;/a&gt; worked already it was simply not visible due to my background...&lt;/P&gt;&lt;P&gt;the selection border is not my primary intend...i just wanted to know how to edit the style of the selcted button even when something else on the dashboard gets selected...&lt;/P&gt;&lt;P&gt;now i can do this...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brausepaule_0-1678108931834.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24210i914C917F0505FEDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Brausepaule_0-1678108931834.png" alt="Brausepaule_0-1678108931834.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks mates...karma incoming &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Where-can-I-find-CSS-for-Link-List-Selected-Item/m-p/633435#M51903</guid>
      <dc:creator>Brausepaule</dc:creator>
      <dc:date>2023-03-06T13:24:04Z</dc:date>
    </item>
  </channel>
</rss>

