Skip to content

Table cell style #718

Discussion options

You must be logged in to vote

Hello Matteo.

We don't necessarily support this use case.

Here are a few thoughts about your approach:

  • Using the background color in that way could be problematic for accessibility: you would need to ensure that each combination of background & text colors meets minimum contrast ratios.
  • Using color alone to convey information would mean that e.g. color blind users cannot benefit from this.

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.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MatteoGioioso
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants