1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01:00

fix: tags highlight case sensitivity (#2462)

Search is already case insensitive, so it makes sense that the highlight
style is as well.
This commit is contained in:
Nuno Góis 2022-11-17 13:08:47 +00:00 committed by GitHub
parent dc08f1dadd
commit e9fa156aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,8 @@ export const FeatureTagCell: VFC<IFeatureTagCellProps> = ({ row, value }) => {
<StyledLink
underline="always"
highlighted={
searchQuery.length > 0 && value.includes(searchQuery)
searchQuery.length > 0 &&
value.toLowerCase().includes(searchQuery.toLowerCase())
}
>
{row.original.tags?.length === 1