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

Change modal border color #310

Open
mrsaleh opened this issue Nov 14, 2020 · 1 comment
Open

Change modal border color #310

mrsaleh opened this issue Nov 14, 2020 · 1 comment

Comments

@mrsaleh
Copy link

mrsaleh commented Nov 14, 2020

I was checking Modal component source code today because I couldn't change its border color via theme
Apparently, the border and background color of Modal is constant.
Is there any way to change its color without modifying the source code?!

const ModalContent = styled.div<ModalContentProps>(
  ({ minHeight }) => `
    position: relative;
    display: flex;
    flex-direction: column;
    background: ${white};
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
    border-top: 4px solid ${cyan};
    width: 100%;
    ${minHeight ? `min-height: ${minHeight}` : ''};
  `,
);

Thanks in advance

@Deep-Codes
Copy link

@mrsaleh Doesn't style prop helps to override the default styles?

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

No branches or pull requests

2 participants