Skip to content

Commit 5e24ca4

Browse files
authored
Merge pull request #9634 from megantaylor/styled-FieldToggle
Fix FieldToggle cannot be styled using the application theme
2 parents 2f205c7 + 9a7216d commit 5e24ca4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ra-ui-materialui/src/preferences/FieldToggle.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ export const FieldToggle = props => {
123123
);
124124
};
125125

126-
const Root = styled('li')(({ theme }) => ({
126+
const Root = styled('li', {
127+
name: 'RaFieldToggle',
128+
overridesResolver: (_props, styles) => styles.root,
129+
})(({ theme }) => ({
127130
display: 'flex',
128131
justifyContent: 'space-between',
129132
paddingLeft: 0,

0 commit comments

Comments
 (0)