• 3
    • 8
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      When choosing dark colours for the 'Header Background Colour', the search bar is difficult to locate. This behaviour was not present in the earlier releases when the search bar always had white background. Hence this is a regression bug.


      There is no way to customise the colours on the instance to make the search field more visible. It always takes the header colour as its colour.

      Possible Solution

      • making the search bar background color customizable would solve this
      • alternatively, we could de-link the search bar colour with the top bar colour

      Workaround:

      Apply following CSS in the announcement banner:
      Please test this script to see if it breaks any JIRA UI or functionality.

      <style>
      #quickSearchInput {
      border-radius: 5em;
      background: rgba(255,255,255,1);
      color: rgba(0, 0, 0, 0.7);
      }
      
      #quickSearchInput::-webkit-input-placeholder {
          color: rgba(0, 0, 0, 0.7);
      }
      #quickSearchInput:-moz-placeholder {
          /#quickSearchInput FF 4-18 #quickSearchInput/
          color: rgba(0, 0, 0, 0.7);
      }
      #quickSearchInput::-moz-placeholder {
          /#quickSearchInput FF 19+ #quickSearchInput/
          color: rgba(0, 0, 0, 0.7);
      }
      #quickSearchInput:-ms-input-placeholder {
          /#quickSearchInput IE 10+ #quickSearchInput/
          color: rgba(0, 0, 0, 0.7);
      }
      
      .aui-header .aui-quicksearch::after{
      color: rgba(0, 0, 0, 0.7);
      }
      </style>
      

        1. dark_search_bar2.png
          dark_search_bar2.png
          6 kB
        2. New Design.png
          New Design.png
          10 kB
        3. Old view.png
          Old view.png
          26 kB

            [JRASERVER-38890] customizable background color for the search bar

            With the Lite theme introduced in Jira 10, it would be even more important to implement this suggestion, since with a dark menu bar in the Lite design the search field is almost no longer visible.

            Martin Hofmann added a comment - With the Lite theme introduced in Jira 10, it would be even more important to implement this suggestion, since with a dark menu bar in the Lite design the search field is almost no longer visible.

            Adding in my solution from Jira 8.20.7, only if you are allowed to input js in the banner

            <script>

            document.getElementById("quickSearchInput").style = "background-color: white;";

            </script>

            For testing purposes, I recommend wrapping this is an if statement applying it only to a certain user so that you don't accidentally lock yourself out by breaking the ui, do it like so:

            <script>

            let user = AJS.Meta.get("remote-user");

            if(user == 'someUserNameThatsNotYourAdmin')

            { document.getElementById("quickSearchInput").style = "background-color: white;"; }

            </script>

            Then just log in with the test user/user scriptrunner to swap user context to the affected user

            Jordan Hauser added a comment - Adding in my solution from Jira 8.20.7, only if you are allowed to input js in the banner <script> document.getElementById("quickSearchInput").style = "background-color: white;"; </script> For testing purposes, I recommend wrapping this is an if statement applying it only to a certain user so that you don't accidentally lock yourself out by breaking the ui, do it like so: <script> let user = AJS.Meta.get("remote-user"); if(user == 'someUserNameThatsNotYourAdmin') { document.getElementById("quickSearchInput").style = "background-color: white;"; } </script> Then just log in with the test user/user scriptrunner to swap user context to the affected user

            +1

            Ralf Fehling added a comment - +1

            Fabian Graevenitz added a comment - - edited

            @Adrian Ohler - it still does in Jira 8.20.1 - which of course still has this bug. How can I revert that change?

            Edit: This article shows how to set announcement banner text by SQL Notice: You have to restart Jira for the changes to take effect.

            Fabian Graevenitz added a comment - - edited @Adrian Ohler - it still does in Jira 8.20.1 - which of course still has this bug. How can I revert that change? Edit: This article shows how to set announcement banner text by SQL Notice: You have to restart Jira for the changes to take effect.

            That's typically Atlassian: A feature request that could be implemented in less than a day is lurking around for more than half a decade producing frustration at the customers.

             

            WHY ATLASSIAN, WHY?

             

            Suggestion: Use a specific amount of dev time each version, let's say 3 days, to adress old issues for better customer satisfication.

            Fabian Graevenitz added a comment - That's typically Atlassian: A feature request that could be implemented in less than a day is lurking around for more than half a decade producing frustration at the customers.   WHY ATLASSIAN, WHY?   Suggestion: Use a specific amount of dev time each version, let's say 3 days, to adress old issues for better customer satisfication.

            Alex Janes added a comment -

            Gonna implement the work around. But it's definitely something that needs to be addressed.

            Alex Janes added a comment - Gonna implement the work around. But it's definitely something that needs to be addressed.

            This is working for us in Jira 8.1 across all browsers:

             

            <!-- workaround for https://jira.atlassian.com/browse/JRASERVER-35821 -->
            <style>
            #quickSearchInput

            { border-radius: 5em; background: rgba(5, 120, 167,1); /* Blue */ color: rgba(255,255,255,1); /* White */ }

            #quickSearchInput::-webkit-input-placeholder

            { color: rgba(255,255,255,1); /* White */ }

            #quickSearchInput:-moz-placeholder

            { /#quickSearchInput FF 4-18 #quickSearchInput/ color: rgba(255,255,255,1); /* White */ }

            #quickSearchInput::-moz-placeholder

            { /#quickSearchInput FF 19+ #quickSearchInput/ color: rgba(255,255,255,1); /* White */ }

            #quickSearchInput:-ms-input-placeholder

            { /#quickSearchInput IE 10+ #quickSearchInput/ color: rgba(255,255,255,1); /* White */ }

            .aui-header .aui-quicksearch::after

            { color: rgba(255,255,255,1); /* White */ }

            </style>

            QC Tools and Admin added a comment - This is working for us in Jira 8.1 across all browsers:   <!-- workaround for https://jira.atlassian.com/browse/JRASERVER-35821 --> <style> #quickSearchInput { border-radius: 5em; background: rgba(5, 120, 167,1); /* Blue */ color: rgba(255,255,255,1); /* White */ } #quickSearchInput::-webkit-input-placeholder { color: rgba(255,255,255,1); /* White */ } #quickSearchInput:-moz-placeholder { /#quickSearchInput FF 4-18 #quickSearchInput/ color: rgba(255,255,255,1); /* White */ } #quickSearchInput::-moz-placeholder { /#quickSearchInput FF 19+ #quickSearchInput/ color: rgba(255,255,255,1); /* White */ } #quickSearchInput:-ms-input-placeholder { /#quickSearchInput IE 10+ #quickSearchInput/ color: rgba(255,255,255,1); /* White */ } .aui-header .aui-quicksearch::after { color: rgba(255,255,255,1); /* White */ } </style>

            At least in Jira 7.10.1 the workaround mentioned in the description breaks the Jira UI completely. Instead try using this as the announcement banner:

            <style>
            #quickSearchInput {
              background: #FFFFFF;
              color: rgba(0, 0, 0, 1);
            }
            #announcement-banner {
              border-bottom-width: 0px;
              padding: 0px;
            }
            </style>
            

            This worked for me. In case you want to have a different color just replace #FFFFFF with any other HTML color code.

            Adrian Ohler added a comment - At least in Jira 7.10.1 the workaround mentioned in the description breaks the Jira UI completely. Instead try using this as the announcement banner: <style> #quickSearchInput { background: #FFFFFF; color: rgba(0, 0, 0, 1); } #announcement-banner { border-bottom-width: 0px; padding: 0px; } </style> This worked for me. In case you want to have a different color just replace #FFFFFF with any other HTML color code.

            Agreed. This looks awful on any color except blue. Please add the ability to change this like you can in Confluence.

            Darwin Allen added a comment - Agreed. This looks awful on any color except blue. Please add the ability to change this like you can in Confluence.

            In Confluence it's possible to change the color, why it isn't in JIRA? This looks really cheap...

            Richard Kerkhoven added a comment - In Confluence it's possible to change the color, why it isn't in JIRA? This looks really cheap...

              dserhiienko Denys Serhiienko
              dsjauwmook davy
              Votes:
              74 Vote for this issue
              Watchers:
              55 Start watching this issue

                Created:
                Updated: