Just wondering if there is any way to set a text style to update based on its value.
I am designing a grid that has a Status column and I want the style of the text to automatically update if the value equals a particular string. In this case, the default is normal weight and black text, but if the value of the text = “Critical”, then I want it to become bold and red.
The reason I want to automate this is that I am importing the data from a CSV so that I do not have to manually enter accurate data in the grid every time I do new design. Currently I can import the data, but I still have to manually set the font weight and color (either manually or by selecting a font style from the design system.
Any help would be appreciated!