Commit 22c845cf authored by Dylan Griffith's avatar Dylan Griffith

Use info colour for merged search results instead of primary

parent 8e5c5787
......@@ -406,7 +406,7 @@ module SearchHelper
# Closed is considered "danger" for MR so we need to handle separately
if issuable.is_a?(::MergeRequest)
if issuable.merged?
:primary
:info
elsif issuable.closed?
:danger
else
......
---
title: Use info colour for merged search results instead of primary
merge_request: 55008
author:
type: changed
......@@ -580,7 +580,7 @@ RSpec.describe SearchHelper do
describe '#issuable_state_to_badge_class' do
context 'with merge request' do
it 'returns correct badge based on status' do
expect(issuable_state_to_badge_class(build(:merge_request, :merged))).to eq(:primary)
expect(issuable_state_to_badge_class(build(:merge_request, :merged))).to eq(:info)
expect(issuable_state_to_badge_class(build(:merge_request, :closed))).to eq(:danger)
expect(issuable_state_to_badge_class(build(:merge_request, :opened))).to eq(:success)
end
......
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