Commit 2a9b4b82 authored by Illya Klymov's avatar Illya Klymov

Merge branch '340281-update-compliance-framework-labels-dark-mode' into 'master'

Fix compliance framework labels to be readable for all background colors

See merge request gitlab-org/gitlab!71301
parents c7cc77ff 645b035a
.badge.compliance-framework-pill {
border-radius: $label-border-radius;
color: $gray-light;
display: inline-block;
font-size: $gl-font-size-sm;
font-weight: $gl-font-weight-normal;
......
......@@ -3,5 +3,5 @@
- if show_compliance_framework_badge?(project)
- framework = project.compliance_framework_setting.compliance_management_framework
%span.badge.compliance-framework-pill.ml-2.has-tooltip{ style: "background-color: #{framework.color}", data: { container: 'body' }, title: framework.description }
%span.badge.compliance-framework-pill.ml-2.has-tooltip{ style: "background-color: #{framework.color}", class: text_color_class_for_bg(framework.color), data: { container: 'body' }, title: framework.description }
= framework.name
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment