From 3b64a7999c79ef2a2d8cdc91535756d034666e88 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 10 Aug 2022 08:20:29 +0100 Subject: [PATCH] Override the disambiguated profile colour in percy tests for screenshot consistency (#9161) --- res/css/views/messages/_DisambiguatedProfile.pcss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/res/css/views/messages/_DisambiguatedProfile.pcss b/res/css/views/messages/_DisambiguatedProfile.pcss index ef4bc7cfb3..4863dc3518 100644 --- a/res/css/views/messages/_DisambiguatedProfile.pcss +++ b/res/css/views/messages/_DisambiguatedProfile.pcss @@ -34,3 +34,10 @@ limitations under the License. color: $primary-content; } } + +@media only percy { + .mx_DisambiguatedProfile_displayName { + /* Override the colour in percy tests for screenshot consistency */ + color: $username-variant1-color !important; + } +}