From 70ee3b7c134248d8df0203bb7b5195c99b6a0ab9 Mon Sep 17 00:00:00 2001 From: Harrison Hogg Date: Mon, 26 Feb 2024 11:37:24 +0000 Subject: [PATCH] Fixed search accordion icon color Signed-off-by: Harrison Hogg --- .changeset/early-worms-pretend.md | 5 +++++ .../src/components/SearchType/SearchType.Accordion.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/early-worms-pretend.md diff --git a/.changeset/early-worms-pretend.md b/.changeset/early-worms-pretend.md new file mode 100644 index 0000000000..1791d0dbe4 --- /dev/null +++ b/.changeset/early-worms-pretend.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search': patch +--- + +Remove the hardcorded 'black' color give to the search type accordion icon as it doesn't work with dark themes diff --git a/plugins/search/src/components/SearchType/SearchType.Accordion.tsx b/plugins/search/src/components/SearchType/SearchType.Accordion.tsx index 67785b89cb..a77af17a7e 100644 --- a/plugins/search/src/components/SearchType/SearchType.Accordion.tsx +++ b/plugins/search/src/components/SearchType/SearchType.Accordion.tsx @@ -43,7 +43,7 @@ const useStyles = makeStyles(theme => ({ paddingTop: theme.spacing(1), }, icon: { - color: theme.palette.common.black, + color: theme.palette.text.primary, }, list: { width: '100%',