Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugifx: Allow style overrides for SimpleFormIterator #7630

Conversation

andrico1234
Copy link
Contributor

@andrico1234 andrico1234 commented May 4, 2022

Resolves: #7629

Adding the following theme to the simple repo:

const theme = merge({}, defaultTheme, {
    components: {
        RaSimpleFormIterator: {
            styleOverrides: {
                root: {
                    border: '1px solid red',
                    [`& .${SimpleFormIteratorClasses.indexContainer}`]: {
                        border: '1px solid hotpink',
                    },
                    [`& .${SimpleFormIteratorClasses.action}`]: {
                        border: '1px solid blue',
                    },
                },
            },
        },
    },
});

Results in the following (Mondrian-inspired πŸ‘©πŸΌβ€πŸŽ¨πŸ–ŒπŸŽ¨) appearance πŸ˜… :

image

Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! πŸ™‚

@djhi djhi added this to the 4.0.3 milestone May 5, 2022
@djhi djhi merged commit f0d6b3a into marmelab:master May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can no longer override SimpleFormIterator styles
3 participants