We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e06f1 commit fa97f44Copy full SHA for fa97f44
packages/ra-ui-materialui/src/list/datagrid/Datagrid.stories.tsx
@@ -139,8 +139,9 @@ export const RowSx = () => (
139
<Datagrid
140
rowSx={(record: any) => ({
141
backgroundColor: record.id % 2 ? 'white' : '#eee',
142
- '& td.column-year':
143
- record.year > 1900 ? { color: 'primary' } : {},
+ ...(record.year > 1900 && {
+ '& td.column-year': { color: 'primary.main' },
144
+ }),
145
})}
146
>
147
<TextField source="id" />
0 commit comments