From 3ecd1f2c6d0e5c0694cd12b99f561012c3d46e80 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 27 Apr 2022 11:16:48 +0100 Subject: [PATCH] Make user names bold in users table --- app/helpers/tab_nav_helper.rb | 2 +- spec/helpers/tab_nav_helper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/tab_nav_helper.rb b/app/helpers/tab_nav_helper.rb index e8ac7b3d4..1411b6767 100644 --- a/app/helpers/tab_nav_helper.rb +++ b/app/helpers/tab_nav_helper.rb @@ -2,7 +2,7 @@ module TabNavHelper include GovukLinkHelper def user_cell(user) - [govuk_link_to(user.name, user), user.email].join("\n") + [govuk_link_to(user.name, user, class: "govuk-!-font-weight-bold"), user.email].join("\n") end def org_cell(user) diff --git a/spec/helpers/tab_nav_helper_spec.rb b/spec/helpers/tab_nav_helper_spec.rb index 2c8f54258..f8931de8e 100644 --- a/spec/helpers/tab_nav_helper_spec.rb +++ b/spec/helpers/tab_nav_helper_spec.rb @@ -6,7 +6,7 @@ RSpec.describe TabNavHelper do describe "#user_cell" do it "returns user link and email separated by a newline character" do - expected_html = "Danny Rojas\n#{user.email}" + expected_html = "Danny Rojas\n#{user.email}" expect(user_cell(user)).to match(expected_html) end end