Update navigation badge to pajamas styling
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 |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Apply patch
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #344406 (closed)
Edited by Alexander Turinske