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

Style override not working #9

Closed
codehoover opened this issue Dec 21, 2021 · 2 comments
Closed

Style override not working #9

codehoover opened this issue Dec 21, 2021 · 2 comments
Labels
question Further information is requested

Comments

@codehoover
Copy link

Hi I attempt to override the styling of the use-chat example the same way you would in bootstrap

My chat_override.scss file looks like

@import "../node_modules/@chatscope/chat-ui-kit-styles/themes/default/variables";

$color-text:blue; $color-primary: purple;

and my main.scss (that I made outside of node_modules) looks like

@charset "utf-8"; @import "./variables.scss"; @import "../node_modules/@chatscope/chat-ui-kit-styles/themes/default/main.scss";

I then import it into the Chat.tsx file as

import "../main.scss";

Is there any documentation on how to do this? Where am I going wrong it seems as thought it should be simple but maybe I am missing something

@supersnager
Copy link
Contributor

@codehoover Thank you for your question.

I think you forgot to import your chat_override.scss.
Please compare your code with this #5 (comment)

@supersnager supersnager added the question Further information is requested label Dec 21, 2021
@codehoover
Copy link
Author

codehoover commented Dec 23, 2021

Hi thanks for your quick response! I have now imported it into my main.scss file however no changes happen still!

here is a link to the repo with my code you can find my two files under "styles" https://github.com/codehoover/chatscope_styling

main.scss
@charset "utf-8";
@import "./chat_override.scss";
@import "../../node_modules/@chatscope/chat-ui-kit-styles/themes/default/main.scss";

Am I importing it into the correct file (Chat.tsx)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants