From e9fa156aec0dcf7fc60bba66bc9d8e03b26053e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Thu, 17 Nov 2022 13:08:47 +0000 Subject: [PATCH] fix: tags highlight case sensitivity (#2462) Search is already case insensitive, so it makes sense that the highlight style is as well. --- .../common/Table/cells/FeatureTagCell/FeatureTagCell.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/common/Table/cells/FeatureTagCell/FeatureTagCell.tsx b/frontend/src/component/common/Table/cells/FeatureTagCell/FeatureTagCell.tsx index e4b9e8a81c..2ecdbdaf10 100644 --- a/frontend/src/component/common/Table/cells/FeatureTagCell/FeatureTagCell.tsx +++ b/frontend/src/component/common/Table/cells/FeatureTagCell/FeatureTagCell.tsx @@ -47,7 +47,8 @@ export const FeatureTagCell: VFC = ({ row, value }) => { 0 && value.includes(searchQuery) + searchQuery.length > 0 && + value.toLowerCase().includes(searchQuery.toLowerCase()) } > {row.original.tags?.length === 1