Searchkit column styles and icons not working properly with all conditionals for custom fields
Overview
Conditional "if equal" only works in Searchkit column styles and icons for custom fields when value is one-word and doesn't include accents or hyphens
Reproduction steps
- Create a new set of custom fields used for memberships [e.g. Contribution status]
- Inside that set, create a new drop-down custom field [e.g. Status] with several multiple choice options
- Some of those multiple choice options must be one-word [e.g. Active, Inactive] while others must contain whitespaces or hyphens [e.g. Act-ive, Blocked and waiting, Act ive]
- Edit/create some memberships and choose the values that we have previously created for the custom field [each membership with a different value]
- Create a new Searchkit that searchs for memberships
- Create a table from Compose Search
- In the column corresponding to the custom field, add several styles for the different values of the field with contidional if <custom field> =
Current behaviour
Searchkit only applies style to one-word values:
Expected behaviour
Styles should be applied to all custom field values
Environment information
- Browser: Chrome 114.0.5735.133
- CiviCRM: dmaster