Table cell style #718
-
I need to change background color of my cells depending on values, this is the solution I am currently using:
and this is the result: However I would like to have the entire cell background as that color, how can I do that? I could not find anything in the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello Matteo. We don't necessarily support this use case. Here are a few thoughts about your approach:
Our recommendation would be to display a status indicator or icon, which might end up working better for the intended purpose. You can see our Table example where we use a status indicator to indicate state. Another option is to wrap the values in the table cells with a popover to provide any context. |
Beta Was this translation helpful? Give feedback.
-
Hello Ruben, thanks for the answer and appreciate the suggestion, I might eventually fallback to use the icon and drop the background color. Anyway, for the time being, I have solved (hacked) it this way:
and then
|
Beta Was this translation helpful? Give feedback.
-
@rubencarvalho Facing a similar issue, however for our use case we'd like to grey out a row/cell while maintaining accessibility. Is there a suggested way to do this, or would it require a "hacky" solution similar to Matteo's workaround? |
Beta Was this translation helpful? Give feedback.
Hello Matteo.
We don't necessarily support this use case.
Here are a few thoughts about your approach:
Our recommendation would be to display a status indicator or icon, which might end up working better for the intended purpose.
You can see our Table example where we use a status indicator to indicate state. Another option is to wrap the values in the table cells with a popover to provide any context.