Skip to content

Commit

Permalink
Merge pull request #9634 from megantaylor/styled-FieldToggle
Browse files Browse the repository at this point in the history
Fix FieldToggle cannot be styled using the application theme
  • Loading branch information
fzaninotto committed Feb 2, 2024
2 parents 2f205c7 + 9a7216d commit 5e24ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/src/preferences/FieldToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ export const FieldToggle = props => {
);
};

const Root = styled('li')(({ theme }) => ({
const Root = styled('li', {
name: 'RaFieldToggle',
overridesResolver: (_props, styles) => styles.root,
})(({ theme }) => ({
display: 'flex',
justifyContent: 'space-between',
paddingLeft: 0,
Expand Down

0 comments on commit 5e24ca4

Please sign in to comment.