Commit 645b035a authored by Jiaan Louw's avatar Jiaan Louw Committed by Jiaan Louw

Fix compliance framework labels readability

Resolves the compliance framework labels not being readable
on all framework colors.

Changelog: fixed
EE: true
parent 0335e0c4
.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