Menu bar items are displayed with a blue border when clicked, which can be discordant with the defined Look and Feel

XMLWordPrintable

    • 8.05
    • 2
    • Severity 3 - Minor
    • 0

      Issue Summary

      When clicking a Jira Menu Header link (EG Dashboards, Projects, etc), a blue border is displayed. This can contrast in a disturbing way when Jira's default theme is customized via the "Look and Feel" feature.

      Unable to reproduce in 7.13.16

      Steps to Reproduce

      1. Browse to Jira Admin -> System -> Look and Feel, then upload this logo image to customize the theme: ceilingcat.png. You will note that the theme is customised to a brown color.
      2. Now, click "Projects" menu bar item

      Expected Results

      The border colour should follow the theme settings, thus be visually pleasing. It should probably follow the "Header navigation - highlight background colour"

      Actual Results

      The border is shown in a non-customisable blue

      The CSS is

      .aui-header .aui-header-logo>a:focus, .aui-header .aui-header-primary>.aui-nav>li>a:not(.aui-button):focus, .aui-header .aui-header-secondary>.aui-nav>li>a:not(.aui-button):focus: {
       box-shadow: inset 0 0 0 2px var(--aui-focus);
      }

      Which is in-turn set to

      --aui-focus: #4c9aff;

      Workaround

      Add the following code block to the Announcement Banner. You can customize the #000 value to whatever HTML HEX color code you prefer

      <!-- Workaround for JRASERVER-73031 -->
      <style>
      .aui-header .aui-header-logo>a:focus, .aui-header .aui-header-primary>.aui-nav>li>a:not(.aui-button):focus, .aui-header .aui-header-secondary>.aui-nav>li>a:not(.aui-button):focus {box-shadow: inset 0 0 0 2px #000}
      </style>
      

        1. image-2021-11-22-15-56-08-234.png
          11 kB
          Alex [Atlassian,PSE]
        2. image-2021-11-22-15-59-25-722.png
          7 kB
          Alex [Atlassian,PSE]
        3. ceilingcat.png
          38 kB
          Alex [Atlassian,PSE]

            Assignee:
            Unassigned
            Reporter:
            Alex [Atlassian,PSE]
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: