From 37cc1d0aeb58ffca575e2754f1c0695351076bf4 Mon Sep 17 00:00:00 2001 From: Tim Kinnane Date: Thu, 16 Aug 2018 00:08:38 +1000 Subject: [PATCH] [IMPROVE] Role tag UI (#11674) Role and bot tags are too prominent. When conversations involve lots of sequential messages from bots or users with role tags, the tags make it hard on the eye to track down the message stream. The end effect is a messy view and high cognitive load. I removed the bot tag from sequential messages entirely and reduced the visual impact of all role tags. Includes: - Visual enhancement for less busy tags - Consolidated styles for role tags - Use color classes in markup instead of css Example shows a conversation I'm having with our new buddy Faldo... Before: screenshot 2018-08-04 14 52 59 After: screenshot 2018-08-04 16 44 41 --- .../client/imports/general/base_old.css | 13 ++++--------- packages/rocketchat-theme/server/colors.less | 5 ----- packages/rocketchat-ui-message/client/message.html | 4 ++-- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/packages/rocketchat-theme/client/imports/general/base_old.css b/packages/rocketchat-theme/client/imports/general/base_old.css index f0ad74190e440..c16e287681217 100644 --- a/packages/rocketchat-theme/client/imports/general/base_old.css +++ b/packages/rocketchat-theme/client/imports/general/base_old.css @@ -3115,8 +3115,8 @@ & .is-bot, & .role-tag { padding: 1px 4px; - - border-radius: 2px; + border-radius: 4px; + border-width: 1px; } } @@ -3147,7 +3147,8 @@ text-align: right; & .time, - & .role-tag { + & .role-tag, + & .is-bot { display: none; } @@ -3868,12 +3869,6 @@ body:not(.is-cordova) { font-weight: 300; line-height: 18px; } - - & .role-tag { - padding: 1px 4px; - - border-radius: 2px; - } } & .stats li { diff --git a/packages/rocketchat-theme/server/colors.less b/packages/rocketchat-theme/server/colors.less index c7dbbbc6aaec3..50e6f3bca3d53 100755 --- a/packages/rocketchat-theme/server/colors.less +++ b/packages/rocketchat-theme/server/colors.less @@ -584,11 +584,6 @@ input:-webkit-autofill { } } - .is-bot, - .role-tag { - color: contrast(@info-font-color); - } - a { color: @link-font-color; diff --git a/packages/rocketchat-ui-message/client/message.html b/packages/rocketchat-ui-message/client/message.html index c5dd433820c24..c7c93aed55752 100644 --- a/packages/rocketchat-ui-message/client/message.html +++ b/packages/rocketchat-ui-message/client/message.html @@ -24,10 +24,10 @@ {{#each roleTags}} - {{description}} + {{description}} {{/each}} {{#if isBot}} - BOT + Bot {{/if}} {{time}} {{#if showTranslated}}