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

[BUG] FronteggProvider.customStyles are not applied to admin box #1140

Open
iurii-iufimov-forgood opened this issue May 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@iurii-iufimov-forgood
Copy link

Describe the bug
While creating <FronteggProvider> component you can pass customStyles property. It is applied to the shadow-root of login-page element, but not to the shadow-root of admin panel.

To Reproduce

const customStyles = `
.MuiBox-root {
  background: #000
}
`;

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
  <React.StrictMode>
    <FronteggProvider
      contextOptions={contextOptions}
      hostedLoginBox={false}
      customStyles={customStyles}
    >
      <App />
    </FronteggProvider>
  </React.StrictMode>
);

Expected behavior
Whether customStyles should be applied to all shadow-roots, or them should be configurable only for loginPage (e.g., via themeOptions.loginBox)

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants