Skip to content

Update navigation badge to pajamas styling

Alexander Turinske requested to merge 344406-navigation-badge-pajamas into master

What does this MR do and why?

Update navigation badge to pajamas styling

  • update gl_badge_helper to account for different icon sizes

Changelog: changed

Screenshots or screen recordings

Before After
Screen_Shot_2022-01-27_at_16.07.33 image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Apply patch
  2. View breadcrumbs
diff --git a/app/views/layouts/nav/_classification_level_banner.html.haml b/app/views/layouts/nav/_classification_level_banner.html.haml
index f41eadcc0f1..ee52c5308bd 100644
--- a/app/views/layouts/nav/_classification_level_banner.html.haml
+++ b/app/views/layouts/nav/_classification_level_banner.html.haml
@@ -1,3 +1,3 @@
-- if ::Gitlab::ExternalAuthorization.enabled? && @project
+- if true
   = content_for :header_content do
-    = gl_badge_tag(@project.external_authorization_classification_label, { variant: :danger, icon: 'lock-open', icon_size: 8 }, { class: 'has-tooltip', title: s_('ExternalAuthorizationService|Classification label') })
+    = gl_badge_tag('Test Label', { variant: :danger, icon: 'lock-open', icon_size: 8 }, { class: 'has-tooltip', title: s_('ExternalAuthorizationService|Classification label') })

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344406 (closed)

Edited by Alexander Turinske

Merge request reports

Loading