From abb0450a6a76268f8680052805812838f1128747 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 11 Feb 2025 14:28:36 +0100 Subject: [PATCH] fix: Use the right theme even if the payload is a variant. (#9292) Also, use extra css selectors to increase specificity so that this takes precedence over the MUI themes. I don't like that we need to do this weird selector thing, but hey, it is what it is. --- .../__snapshots__/FeedbackCESForm.test.tsx.snap | 2 +- .../__snapshots__/TagTypeList.test.tsx.snap | 2 +- frontend/src/hooks/useThemeMode.ts | 15 +++++++++++++-- frontend/src/themes/dark-theme.legacy.ts | 7 ++++++- frontend/src/themes/theme.legacy.ts | 7 ++++++- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap b/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap index 45eafb565c..330308bd14 100644 --- a/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap +++ b/frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap @@ -169,7 +169,7 @@ exports[`FeedbackCESForm 1`] = ` hidden="" >