How override selected row styles? #35
-
I want to customize selected rows but I didn't find a way to do it. Even my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @bezvrednyy Thanks for asking: If you want to give a row a specific CSS class, do it this way:
Then if you want to style all Row components with this CSS class, specify it in the
Regarding the selected state on a row, when you inspect the HTML elements in the browser, you will see that the Row component receives the following optional* CSS classes based on its select status:
While the former is applied for multi-select, the latter gets applied for single select. So if you want to style a row for multi-select, do it the following way:
For single select it would look like this:
If you want to style both cases the same way, then use the selectors this way:
Let me know if this answer helped you! |
Beta Was this translation helpful? Give feedback.
Hi @bezvrednyy Thanks for asking:
If you want to give a row a specific CSS class, do it this way:
Then if you want to style all Row components with this CSS class, specify it in the
THEME
that is passed toconst = useTheme(THEME)
:Regarding the selected state on a row, when you inspect the HTML elements in the browser, you will see that the Row component receives the following optional* CSS classes based on its select status:
While the former is applied for multi-select, the latter gets applied for single select. So if you want to sty…